From 21d72c4a80fe2937d0c4ddd20624b27adbcd989b Mon Sep 17 00:00:00 2001 From: lizi00164331
Used to capture the event before check or uncheck node, zTree based on return value to determine whether to change check state.
+Default: null
+zTree unique identifier: treeId, easy for users to control.
+JSON data object of the node which is checked or unchecked
+return true or false
+If return false, zTree will not change check state, and will not trigger the 'onCheck' callback.
+function zTreeBeforeCheck(treeId, treeNode) {
+ return false;
+};
+var setting = {
+ callback: {
+ beforeCheck: zTreeBeforeCheck
+ }
+};
+......
+