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