click

fires on clicking an item

void click(string|number id,Event e){ ... };

Parameters

idstring|numberthe id of a clicked item
eEventa 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 samples

Back to top