Callback before checking or unchecking a node, A false return value from the callback will prevent any change in the checked state.
Default: null
zTree unique identifier: treeId.
JSON data object of the node which is checked or unchecked
return true or false
If return false, zTree will not change the checkbox state, and will not trigger the 'onCheck' callback.
function myBeforeCheckCallBack(treeId, treeNode) {
return false;
};
var setting = {
callback: {
beforeCheck: myBeforeCheckCallBack
}
};
......