From e02cfb1940c721efa29d7766763e5d5beaf46189 Mon Sep 17 00:00:00 2001 From: Lizi
To cancel the selected node.
-zTree v3.x support to select multiple nodes, so you can cancel a single selected node, and you can cancel all of the selected nodes too.
-Please use zTree object to executing the method.
-JSON data object of the node which need to cancel selected.
-Please ensure that this data object is an internal node data object in zTree.
-If you omit this parameter, zTree will cancel all of the selected nodes.
-no return value
-var treeObj = $.fn.zTree.getZTreeObj("tree");
-treeObj.cancelSelectedNode();
-
- var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNode();
-if (nodes.length>0) {
- treeObj.cancelSelectedNode(nodes[0]);
-}
-
-