[ enum ] TextAction
Description:
Enum for actions on text components (TextField, TextArea, etc.). To be used in text() method.
Type: number
Properties:
| Name | Description |
|---|---|
|
Replace all text. |
|
Add text at the beginning. |
|
Add text at the end. |
|
Insert at current caret position. |
|
Replace selected text. |
Examples:
Appending text to TextArea component:
let textarea = new TextArea("Hello").text(" World!", TextAction.Append);
// text area will contain text "Hello World!"
