Class: TextEntry

ui.TextEntry

new ui.TextEntry ()

Element representing a single-line text entry box.

Properties:
Name Type Description
clearButton bool

(default: false) If true, shows a button to clear the text.

horizontalAlignment string

(default: "left") Horizontal text alignment: left|center|right

text string

(default: "") The current text.

password bool

(default: false) Whether this is a password entry, i.e. the actual text is not displayed.

pattern string

(default: ".*") A regular expression for limiting the allowed text input, e.g. "[0-9]*" would allow entering numbers only.

Extends