Specify callback function to be called before expanding a node, The return value controls the expand node callback.
Default: null
zTree unique identifier: treeId.
JSON data object of the node to be expanded
return true or false
If return false, zTree will not expand node, and will not trigger the 'onExpand' callback.
function myBeforeExpand(treeId, treeNode) {
return false;
};
var setting = {
callback: {
beforeExpand: myBeforeExpand
}
};
......