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
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 easy javascript framework and page of treemap visualization product.