fires when a component item was clicked
id | string | the id of the clicked item |
e | Event | a native event object |
node | HTMLElement | the target HTML element |
list.attachEvent("onItemClick", function(id, e, node){
var item = this.getItem(id);
//... some code here ...
});
The most common use case for such events is getting info about the component item that has just been clicked. It can be done with a common getItem method that requires item ID as parameter.