onItemClick

fires when a component item was clicked

void onItemClick(object id, [Event e,HTMLElement node] ){ ... };

Parameters

idobjectrow/column of the clicked item
eEventa native event object
nodeHTMLElementthe target HTML element

Example

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

Related samples

Details

The id parameter has the following structure:

{ row:3, column:"title"}

It can be passed into a getItem method anyhway.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix js frameworks and page of javascript datatables product.