From 21d72c4a80fe2937d0c4ddd20624b27adbcd989b Mon Sep 17 00:00:00 2001 From: lizi00164331
Get the node's half-checked status of checkbox or radio. It is valid when [setting.check.enable = true]
+Do not initialize or modify it, it is created by the zTree.
+{
+ checked: true, //As same as 'treeNode.checked'
+ half: true //Rule the table below
+}
+ setting.check.checkType = "checkbox" | |||
treeNode.checked | treeNode.check_Child_State | treeNode.halfCheck | half |
- | - | true | true |
true | -1 | false | false |
true | 0 | false | true |
true | 1 | false | true |
true | 2 | false | false |
false | -1 | false | false |
false | 0 | false | false |
false | 1 | false | true |
false | 2 | false | true |
setting.check.checkType = "radio" | |||
treeNode.checked | treeNode.check_Child_State | treeNode.halfCheck | half |
- | - | true | true |
true | -1 | false | false |
true | 0 | false | false |
true | 2 | false | true |
false | -1 | false | false |
false | 0 | false | false |
false | 2 | false | true |
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var halfCheck = treeObj.getNodes()[0].getCheckStatus();
+
+