Fan

 

class

fwt::Text

sys::Obj
  fwt::Widget
    fwt::TextWidget
      fwt::Text

@js

Text is used to enter and modify text.

Slots

makeSource

new make(|Text|? f := null)

Default constructor.

modifySource

override Void modify(Int start, Int replaceLen, Str newText)

Replace the text with newText starting at position start for a length of replaceLen.

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

The current text. Defaults to "".