Options to configure the behavior of the input box UI.

Fields

@:optionaloptionalvalueSelection:Null<Array<Int>>

Selection of the prefilled {@linkcode InputBoxOptions.value value}. Defined as tuple of two number where the first is the inclusive start index and the second the exclusive end index. When undefined the whole word will be selected, when empty (start equals end) only the cursor will be set, otherwise the defined range will be selected.

@:optionaloptionalvalue:Null<String>

The value to prefill in the input box.

@:optionaloptionalvalidateInput:Null<String ‑> ProviderResult<Null<String>>>

An optional function that will be called to validate input and to give a hint to the user.

Parameters:

value

The current value of the input box.

Returns:

A human-readable string which is presented as diagnostic message. Return undefined, null, or the empty string when 'value' is valid.

@:optionaloptionaltitle:Null<String>

An optional string that represents the title of the input box.

@:optionaloptionalprompt:Null<String>

The text to display underneath the input box.

@:optionaloptionalplaceHolder:Null<String>

An optional string to show as placeholder in the input box to guide the user what to type.

@:optionaloptionalpassword:Null<Bool>

Controls if a password input is shown. Password input hides the typed text.

@:optionaloptionalignoreFocusOut:Null<Bool>

Set to true to keep the input box open when focus moves to another part of the editor or to another window. This setting is ignored on iPad and is always false.