From 21d72c4a80fe2937d0c4ddd20624b27adbcd989b Mon Sep 17 00:00:00 2001 From: lizi00164331
Used to capture the event before click edit button, zTree based on return value to determine whether to allow to edit the name.
+This callback is used to capture the event which edit button is clicked, then trigger the custom editing operation.
+Default: null
+zTree unique identifier: treeId, easy for users to control.
+JSON data object of the node which will be edited name.
+return true or false
+If return false, the node will not be able to edit the name.
+function zTreeBeforeEditName(treeId, treeNode) {
+ return !treeNode.isParent;
+}
+var setting = {
+ edit: {
+ enable: true
+ },
+ callback: {
+ beforeEditName: zTreeBeforeEditName
+ }
+};
+......
+