close()
Close the field and eventually opened popups...
disable()
Disable the field
enable()
Enable the field
fireUpdatedEvt()
Fire the "updated" event (only if the field validated)
Escape the stack using a setTimeout
<HTMLElement> getEl()
The default render creates a div to put in the messages
Returns:
<HTMLElement> divEl The main DIV wrapper
<String> getState()
Returns the current state (given its value)
Returns:
<String> One of the following states: 'empty', 'required', 'valid' or 'invalid'
getStateString(state)
Get the string for the given state
<Any> getValue()
Return the value of the input
initEvents()
Initialize events of the Input
onBlur(e)
Function called on the blur event
Parameters:
e <Event>
- The original event
onChange(e)
onChange event handler
Parameters:
e <Event>
- The original event
onFocus(e)
Function called on the focus event
Parameters:
e <Event>
- The original event
render()
Default render of the dom element. Create a divEl that wraps the field.
renderComponent()
Render the interface component into this.divEl
setClassFromState()
Set the styles for valid/invalide state
setOptions()
Set the default values of the options
setToolTipMessage()
Set the tooltip message
setValue(value)
Function to set the value
Parameters:
value <Any>
- The new value
<Boolean> validate()
Validation of the field
Returns:
<Boolean> field validation status (true/false)