Event handling
Attaching event listeners
You can attach event listeners with the popup.events.on() method:
popup.events.on("click", function(e){
console.log("The popup was clicked");
});
note
Event names are case-insensitive.
Related sample: Popup. Events
Detaching event listeners
The popup.events.detach() method removes event listeners:
popup.events.on("click", function(e){
console.log("The popup was clicked");
});
popup.events.detach("click");
Calling events
The popup.events.fire() method calls an event:
popup.events.fire("name",args);
// where args is an array of arguments
List of events
The API section lists all Popup events.