Text is used to enter and modify text.
Slots
- modifySource
-
override Void modify(Int start, Int replaceLen, Str newText)Overrides fwt::TextWidget.modify
Replace the text with
newTextstarting at positionstartfor a length ofreplaceLen. - onActionSource
-
readonly EventListeners onAction := EventListeners()Callback when Return/Enter key is pressed in a single line text editor (not invoked for multiLine)
Event id fired:
Event fields:
- none
- onModifySource
-
readonly EventListeners onModify := EventListeners()Callback when the text is modified.
Event id fired:
Event fields:
- none
- passwordSource
-
const Bool password := falseTrue to make this a password text field which hides the characters being typed. Default is false. This field cannot be changed once the widget is constructed.
- textSource
-
override native Str textOverrides fwt::TextWidget.text
The current text. Defaults to "".