CLIENT GUI Framework
[vnfsdk/refrepo.git] / portal-common / src / main / webapp / common / thirdparty / zTree / api / en / treeNode.halfCheck.html
1 <div class="apiDetail">\r
2 <div>\r
3         <h2><span>Boolean</span><span class="path">treeNode.</span>halfCheck</h2>\r
4         <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>\r
5         <div class="desc">\r
6                 <p></p>\r
7                 <div class="longdesc">\r
8                         <p>Force node checkBox / radio to the half-checked status. It is valid when <span class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false]</span></p>\r
9                         <p class="highlight_red">1. If you force to the half-checked status, zTree will not automatically calculated the half-checked status about this node.</p>\r
10                         <p class="highlight_red">2. Until you set treeNode.halfCheck to false or null, zTree will automatically calculated the half-checked status about this node.</p>\r
11                         <p class="highlight_red">3. zTree support identification string 'true' & 'false'.</p>\r
12                         <p>Defaul: false</p>\r
13                 </div>\r
14         </div>\r
15         <h3>Boolean Format</h3>\r
16         <div class="desc">\r
17         <p>true means: the checkbox or radio is half-checked when zTree is initialized.</p>\r
18         <p>false means: the half-checked status will be automatically calculated</p>\r
19         </div>\r
20         <h3>Examples of treeNode</h3>\r
21         <h4>1. set the half-checked status when zTree is initialized</h4>\r
22         <pre xmlns=""><code>var nodes = [\r
23 { "id":1, "name":"test1", isParent:true, checked:true, halfCheck:true },\r
24 { "id":2, "name":"test2", isParent:true, checked:false, halfCheck:true },\r
25 { "id":3, "name":"test3", isParent:true, checked:true },\r
26 { "id":4, "name":"test4", isParent:true, checked:false }\r
27 ]</code></pre>\r
28 </div>\r
29 </div>