Specify callback function to be called before click edit button, The return value controls the editing of the name.
This callback is fired when the edit button is clicked, to control the custom editing operation.
Default: null
zTree unique identifier: treeId.
JSON data object of the node to be edited.
return true or false
If return false, allow editing of the name.
function myBeforeEditName(treeId, treeNode) {
return !treeNode.isParent;
}
var setting = {
edit: {
enable: true
},
callback: {
beforeEditName: myBeforeEditName
}
};
......