From e02cfb1940c721efa29d7766763e5d5beaf46189 Mon Sep 17 00:00:00 2001 From: Lizi
Used to capture the check or uncheck event when check or uncheck the checkbox and radio.
-If you set 'setting.callback.beforeCheck',and return false, zTree will not change check state, and will not trigger the 'onCheck' callback.
-Default: null
-event Object
-zTree unique identifier: treeId, easy for users to control.
-JSON data object of the node which is checked or unchecked
-function zTreeOnCheck(event, treeId, treeNode) {
- alert(treeNode.tId + ", " + treeNode.name + "," + treeNode.checked);
-};
-var setting = {
- callback: {
- onCheck: zTreeOnCheck
- }
-};
-......
-