fires when a data item is clicked
id | string|number|object | the item id |
e | Event | a native event object |
node | HTMLElement | the target HTML element |
$$("mypivot").attachEvent("onItemClick", function(id){
webix.message(id);
});
// or attach the handler to the event in the pivot config
webix.ui({
view:"pivot",
id:"mypivot",
on:{
onItemClick:function(id){
webix.message(id);
}
}
});
Item id depends on Pivot type.
For Pivot Datatable it is an object with the following properties:
For Pivot Chart id is a string or number that points to a data item id.
Back to top