- Index
- »
- fan.domkit
- »
- TextField
TextField
@Js
class TextField : Elem
Text field input element.
See also: docDomkit
Value of text field
Set to true to mask characters inputed into field
Hint that is displayed in the field before a user enters a value that describes the expected input, or null for no placeholder text
Preferred width of field in columns, or null for default
Set to true to set field to readonly mode
Callback when enter key is pressed
Select given range of text
Callback when value is modified by user
Int? : cols
Preferred width of field in columns, or null for default.
new make()
Void onAction(|This| f)
Callback when enter key is pressed.
Void onModify(|This| f)
Callback when value is modified by user.
Bool : password
Set to true to mask characters inputed into field.
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.
Bool : ro
Set to true to set field to readonly mode.
Void select(Int start, Int end)
Select given range of text
Str : val
Value of text field.