onItemCheck

called when the checkbox inside the tree item was checked

void onItemCheck(id id,boolean state,Event e);
ididthe id of the related item
statebooleanthe checked/unchecked state of a checkbox
eEventa native event object (absent when the threeState property is enabled)

Example

tree.attachEvent("onItemCheck". function(id, state, e){
    webix.message("Item " + id + " was " + (state? "checked" : "unchecked"));
});

Back to top
If you have not checked yet, be sure to visit site of our main product Webix easy javascript framework and page of treemap visualization product.