Event handling
Attaching event listeners
You can add a custom handler to any available event with the combo.events.on() method. The method takes the following parameters:
| evName | the event name |
| evHandler | a custom event handler |
combo.events.on("open", function() {
// your logic here
});
You can attach several handlers to the same event, and Combobox runs all of them.
note
Event names are case-insensitive.
Related sample: Combobox. Events
Detaching event listeners
The combo.events.detach() method removes an event handler:
combo.events.on("open", function() {
// your logic here
});
combo.events.detach("open");
Calling events
The combo.events.fire() method calls an event:
combo.events.fire("name",args);
// where args is an array of arguments
List of supported events
You can find the full list of Combobox events in the API Reference.