fires when an item is clicked
id | string|number | id of the item |
ev | Event object | native event object |
html | object | target HTML element |
boolean | true - to trigger the default action, false - to block it |
myList.attachEvent("onItemClick", function (id, ev, html){
// your code here
return true;
});
The event is blockable. Returning false from event handler will prevent the default action (clicking an item).
Back to top