class

TextField

@Js
class TextField : Elem

Text field input element.

See also: docDomkit

constructors make

fields val

Value of text field

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

cols

Preferred width of field in columns, or null for default

ro

Set to true to set field to readonly mode

methods onAction

Callback when enter key is pressed

select

Select given range of text

onModify

Callback when value is modified by user

cols Int? : cols

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

make new make()

onAction Void onAction(|This| f)

Callback when enter key is pressed.

onModify Void onModify(|This| f)

Callback when value is modified by user.

password Bool : password

Set to true to mask characters inputed into field.

placeholder 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 Bool : ro

Set to true to set field to readonly mode.

select Void select(Int start, Int end)

Select given range of text

val Str : val

Value of text field.

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST