Function()treeNode.getCheckStatus

Overview[ depends on jquery.ztree.excheck js ]

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.

Function Parameter Descriptions

ReturnJSON

{
	checked: true, //As same as 'treeNode.checked'
	half: true  //Rule the table below
}
setting.check.checkType = "checkbox"
treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
--truetrue
 
true-1falsefalse
true0falsetrue
true1falsetrue
true2falsefalse
 
false-1falsefalse
false0falsefalse
false1falsetrue
false2falsetrue

setting.check.checkType = "radio"
treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
--truetrue
 
true-1falsefalse
true0falsefalse
true2falsetrue
 
false-1falsefalse
false0falsefalse
false2falsetrue

Examples of treeNode

1. Get the first root node's half-checked status

var treeObj = $.fn.zTree.getZTreeObj("tree");
var halfCheck = treeObj.getNodes()[0].getCheckStatus();