Skip to content

onItemClick

fires when a component item was clicked

function onItemClick(
// the id of the clicked item
id: string,
// a native event object
e: Event,
// the target HTML element
node: HTMLElement
): void
grid.attachEvent("onItemClick", function(id, e, node){
var item = this.getItem(id);
//... some code here ...
});

also check the next samples:

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.

Articles

API