TextField

An input field where users can enter and edit a single line of text. It’s commonly used for gathering textual information from users, such as usernames, passwords, search queries, or any other type of short text input.

local input = TextField(text: optional)

Note

The next release will include a lot of text formating features

Properties

setOnTextChange(callback)

The function executed text inside changes

Params:

self and text

setText(text)

Sets text in the widget

getText()

Returns the text input

setHint(text)

Sets hint/placeholder text in the widget

selectAll()

Seleects all text

setReadOnly(enable: bool)

Sets widget to read-only or allow input

redo()

Redo text input

undo()

Undo text input

setMaxLength()

Sets the maximum input length in the widget

appendText(text)

Appends text to the widget