class
TextField

package haxe.ui.components

↪ haxe.ui.components.TextField

A single line text input box. for multiline text input use TextArea.

behaviour
bindable
clonable
caretIndex:Int
The (zero based) position of the caret within the textfield

behaviour
bindable
clonable
htmlText:String
A string containing HTML markup to be displayed inside the text field.
behaviour
bindable
clonable
icon:String
An icon that is displayed to the left of the text field.

To display an icon, set the icon property to a path to an image file.
If no icon is set, the text field will be displayed without any icon. The default is no icon.
behaviour
bindable
clonable
maxChars:Int
The maximum number of characters that can be entered in the text field.
**Note** - this doesnt apply to text added via code.
behaviour
bindable
clonable
password:Bool
Whether or not the text inside the text field is fully visible,
or displayed as a password, with every character replaced by a *.
behaviour
bindable
clonable
placeholder:String
Displayed only when the text is empty.
behaviour
bindable
clonable
restrictChars:String
A string, containing a pattern of characters that the user can enter. When unspecified, the text field accepts all characters.

Usage:

- type out lone characters to include them specifically - "abcde047"
- use the - character to represent a range of characters - "a-zA-Z0-9" will accept characters from a to z, A to Z and 0 to 9.
- prefix the string with a ^ for it to only accept characters that do not match the string's pattern - "^abc" will accept any character except a, b and c.
behaviour
bindable
clonable
selectionEndIndex:Int
behaviour
bindable
clonable
selectionStartIndex:Int


override
cloneComponent():TextField