Specify callback function to be called before remove node, The return value controls the allow to remove node.
Default: null
zTree unique identifier: treeId.
JSON data object of the node to be removed.
return true or false
If return false, zTree will not remove node, and will not trigger the 'onRemove' callback.
function myBeforeRemove(treeId, treeNode) {
return false;
}
var setting = {
edit: {
enable: true
},
callback: {
beforeRemove: myBeforeRemove
}
};
......