onItemClick

fires when a component item was clicked

void onItemClick(string id,Event e,HTMLElement node);
id
stringthe id of the clicked item e
Eventa native event object node
HTMLElementthe target HTML element

Example

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

Related samples

Details

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.

See also
  • API
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
    If you have not checked yet, be sure to visit site of our main product Webix web control library and page of dataview ui product.