From 21d72c4a80fe2937d0c4ddd20624b27adbcd989b Mon Sep 17 00:00:00 2001 From: lizi00164331
The checked status about node's checkbox or radio. It is valid when [setting.check.enable = true & treeNode.nocheck = false]
+1. If change the 'checked' to other attribute, please set the 'setting.data.key.checked' attribute.
+2. If you create node data, and set 'checked' attribute to true, zTree will check this node's checkbox or radio when zTree is initialized.
+3. Use the treeObj.checkNode or checkAllNodes or updateNode method, you can check or uncheck the node. Please see the API about these methods.
+4. zTree support identification string 'true' & 'false'.
+Default: false
+true means: check the checkbox or radio when zTree is initialized.
+false means: uncheck the checkbox or radio when zTree is initialized.
+var nodes = [
+{ "id":1, "name":"test1", checked:true },
+{ "id":2, "name":"test2", checked:true }
+]
+ var treeObj = $.fn.zTree.getZTreeObj("tree");
+var checked = treeObj.getNodes()[0].checked;
+
+