Element Events
Each element type supports a standard set of events that can be subscribed to in order to receive callbacks within your application.
ChangeEvent
Raised whenever the element's value is changed.
Schema
Property | Type | Description |
---|---|---|
isComplete | Boolean | Whether the element has been completely filled (as specified by the mask) |
isEmpty | Boolean | Whether the element is empty |
isValid | Boolean | The result of the validator, or true if no validator is specified |
details | List<EventDetails> | A list of EventDetails included with this event |
EventDetails
Property | Type | Description |
---|---|---|
type | String | The type of data represented by this detail object |
message | String | The content of this detail object |
Usage
myElement.addChangeEventListener {
// handle event
}
FocusEvent
Raised whenever the element receives focus.
Schema
Empty
Usage
myElement.addFocusEventListener {
// handle event
}
BlurEvent
Raised whenever the element loses focus.
Schema
Empty
Usage
myElement.addBlurEventListener {
// handle event
}