Used to capture the check or uncheck event when check or uncheck the checkbox and radio.
If you set 'setting.callback.beforeCheck',and return false, zTree will not change check state, and will not trigger the 'onCheck' callback.
Default: null
event Object
zTree unique identifier: treeId.
JSON data object of the node which is checked or unchecked
function myOnCheck(event, treeId, treeNode) {
alert(treeNode.tId + ", " + treeNode.name + "," + treeNode.checked);
};
var setting = {
callback: {
onCheck: myOnCheck
}
};
......