click
fires on clicking an item
click: (id: string | number, events: Event) => void;
Parameters:
id: string | number
- the id of a clicked itemevents: Event
- a native event object
Example
list.events.on("click", function(id, e){
console.log("The item with the id "+ list.selection.getId(id) +" was clicked.");
});
Related sample: List. Events