onItemCheck

called when the checkbox inside the tree item was checked

void onItemCheck(id id,boolean state,Event e);
id
idthe id of the related item state
booleanthe checked/unchecked state of a checkbox e
Eventa 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.