Skip to main content

click

fires after a click on a button or a menu option

click: (id: Id, events: Event) => void;

Parameters:

  • id: string | number - the ID of a clicked control
  • events: Event - a native event object

Example

menu.events.on("Click", function(id,e){    console.log(id);});

Related sample: Menu. Events