You can attach event listeners with the popup.events.on() method:
popup.events.on("Click", function(e){
console.log("The popup was clicked");
});
The names of events are case-insensitive.
To detach events, use popup.events.detach():
popup.events.on("Click", function(e){
console.log("The popup was clicked");
});
popup.events.detach("Click");
To call events, use popup.events.fire():
popup.events.fire("name",args);
// where args is an array of arguments
The full list of events is available in the related API section.
Back to top