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