Skip to main content

click

fires on clicking an item

click: (id: string | number, events: Event) => void;

Parameters:

  • id: string | number - the id of a clicked item
  • events: 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. List Events