onItemClick

fires when a component item was clicked

void onItemClick(string id,Event e,HTMLElement node);
idstringthe id of the clicked item
eEventa native event object
nodeHTMLElementthe target HTML element

Example

list.attachEvent("onItemClick", function(id, e, node){
    var item = this.getItem(id);
    //... some code here ... 
});

Related samples

Details

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.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript ui components library and page of javascript menu product.