Class: TextInput

hui.ui. TextInput


new TextInput()

A text field

options: {
 element : «Element | ID»,
 name : «String»,
 key : «String»,
 maxHeight : «100 | integer»,
 animateUserChange : «true | false»
}

Events:
$valueChanged(value) - When the value of the field is changed by the user
    
Source:

Methods


<static> create()

Creates a new text field

options: {
 value : «String»,
 multiline : «true | false»,
 lines : «1 | integer»,

 name : «String»,
 key : «String»,
 maxHeight : «100 | integer»,
 animateUserChange : «true | false»
}
Source:

focus()

Focus the text field

Source:

getValue()

Get the value

Source:
Returns:

The value

Type
String

isBlank()

Check if the value has any non-white-space characters

Source:
Returns:

True if the value is blank

Type
Boolean

isEmpty()

Check if the value is empty ('' / the empty string)

Source:
Returns:

True if the value the empty string

Type
Boolean

reset()

Clear the value of the text field

Source:

select()

Select the text in the text field

Source:

setError()

Mark the field with error

Source:

setValue()

Set the value of the field

Source:

stress()

Draw attention to the field

Source: