![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
The TextInput is a single-line component that wraps the native ActionScript TextField object. You can use styles to customize the TextInput component; when an instance is disabled its contents display in a color represented by the "disabledColor" style. A TextInput component can also be formatted with HTML, or as a password field that disguises the text.
A TextInput component can be enabled or disabled in an application. In the disabled state, it doesn't receive mouse or keyboard input. When enabled, it follows the same focus, selection, and navigation rules as an ActionScript TextField object. When a TextInput instance has focus, you can also use the following keys to control it:
Key |
Description |
---|---|
Arrow keys |
Moves character one character left and right. |
Shift + Tab |
Moves focus to the previous object. |
Tab |
Moves focus to the next object. |
For more information about controlling focus, see Creating custom focus navigation or FocusManager class.
A live preview of each TextInput instance reflects changes made to parameters in the Property inspector or Component Inspector panel while authoring. Text is not selectable in the live preview and you cannot enter text into the component instance on the Stage.
When you add the TextInput component to an application, you can use the Accessibility panel to make it accessible to screen readers.
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |