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
dataview.events.on("click", function(id, e){
console.log("The item with the id "+ dataview.selection.getId(id) +" was clicked.");
});
Related sample: Dataview. Events