Optionaldata: MenuInputConfigsJsonOptional JSON object with clear, fastSubmit, inline, validate, and callback.
Returns true when the screen is cleared before rendering the input prompt.
Sets whether the screen is cleared before rendering the prompt.
Returns true when Enter is not required to submit (submits on single character).
Sets whether the prompt submits on the first character typed.
Returns true when the input is rendered inline (no full-screen takeover).
Sets whether the prompt is rendered inline.
Returns a string with characters that should be blocked while typing, or undefined.
Sets characters that should be blocked while typing (e.g. a single space ' ').
Returns the validation function, or undefined if not configured.
Sets a custom validation function for the input value. Return true to accept, a string to display as error, or false to show the generic error label.
Returns the submission callback, or undefined if not configured.
Sets the callback invoked after successful submission.
Async callback receiving the menu and submitted value.
Serialises the config to a plain JSON-compatible object.
ProtectedclearProtectedfastProtectedinlineProtected OptionalforbidProtected OptionalvalidateProtected Optionalcallback
Creates a new MenuInputConfigs with defaults.