click
fires after a click on a button or a menu option
click: (id: string | number, events: Event) => void;
Parameters:
id: string | number
- the ID of a clicked controlevents: Event
- a native event object
Example
menu.events.on("click", function(id,e){
console.log(id);
});
Related sample: Menu. Events