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 event scope is limited to menu level. It can be attached either to a top-level menu, or to any submenu, but not for the whole menu.
At the same time, the onMenuItemClick can catch item clicks on any level.