type

TextField

src @Js
class TextField : Elem

Text field input element.

See also: docDomkit

constructors

fields

cols

Preferred width of field in columns, or null for default.

password

Set to true to mask characters inputed into field.

placeholder

Hint that is displayed in the field before a user enters a value that describes the expected input, or null for no placeholder text.

ro

Set to true to set field to readonly mode.

val

Value of text field.

methods

onAction

Callback when enter key is pressed.

onModify

Callback when value is modified by user.

select

Select given range of text

Slot Details

cols

src Int? cols

Preferred width of field in columns, or null for default.

make

src new make()

onAction

src Void onAction(|This| f)

Callback when enter key is pressed.

onModify

src Void onModify(|This| f)

Callback when value is modified by user.

password

src Bool password

Set to true to mask characters inputed into field.

placeholder

src Str? placeholder

Hint that is displayed in the field before a user enters a value that describes the expected input, or null for no placeholder text.

ro

src Bool ro

Set to true to set field to readonly mode.

select

src Void select(Int start, Int end)

Select given range of text

val

src Str val

Value of text field.