TextBox
继承自 TransitionControl
继承自 Control
TextBox类用于接受用户输入的文本信息。
成员变量
TextBox.bg : Control |
| (只读)文本输入框的背景。 |
TextBox.label : Control |
| (只读)文本输入框的文本控件。 |
TextBox.placeholder : Control |
| (只读)占位符文本。 |
TextBox.text : string |
| 输入框中的文本。 |
TextBox.cursorColor : Color |
| 输入框中文本光标的颜色。 |
TextBox.readOnly : boolean |
| 文本输入框是否为只读状态。 |
TextBox.contentLimit : ContentLimit |
| 文本输入框的内容限制。 |
TextBox.numLimit : number |
| 文本输入框可输入的最大字符数限制。 |
TextBox.selectColor : Color |
| 文本输入框所选文本的颜色。 |
