@Js
@Serializable {
simple=false
collection=false
}
Text is used to enter and modify text.
Slots
- makeSource
-
new make(|This|? f := null)
Default constructor.
- modifySource
-
override Void modify(Int start, Int replaceLen, Str newText)
Overrides fwt::TextWidget.modify
Replace the text with
newText
starting at positionstart
for a length ofreplaceLen
. - onActionSource
-
@Transient
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
-
@Transient
readonly EventListeners onModify := EventListeners()Callback when the text is modified.
Event id fired:
Event fields:
- none
- passwordSource
-
const Bool password := false
True 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 text
Overrides fwt::TextWidget.text
The current text. Defaults to "".