CLIENT GUI Framework
[vnfsdk/refrepo.git] / portal-common / src / main / webapp / common / thirdparty / zTree / api / en / treeNode.chkDisabled.html
1 <div class="apiDetail">\r
2 <div>\r
3         <h2><span>Boolean</span><span class="path">treeNode.</span>chkDisabled</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>1. Set node's checkbox / radio to disabled. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>\r
9                         <p class="highlight_red">2. zTree support identification string 'true' & 'false'.</p>\r
10                         <p class="highlight_red">3. Please don't change this attribute of the nodes which have been created. If you want to disable or undisable the nodes, please use 'setChkDisabled()' methods.</p>\r
11                         <p class="highlight_red">4. When zTree initialize the nodes, if you need to the child nodes automatically inherit the 'chkDisabled' attribute, please see 'setting.check.chkDisabledInherit'.</p>\r
12                         <p>Default: false</p>\r
13                 </div>\r
14         </div>\r
15         <h3>Boolean Format</h3>\r
16         <div class="desc">\r
17         <p class="highlight_red">true means: this node's checkbox / radio is disabled.</p>\r
18         <p class="highlight_red">false means: this node's checkbox / radio is able.</p>\r
19         </div>\r
20         <h3>Examples of treeNode</h3>\r
21         <h4>1. disable some node's checkbox / radio </h4>\r
22         <pre xmlns=""><code>var nodes = [\r
23         { "id":1, "name":"test1", "checked":true, "chkDisabled":true},\r
24         { "id":2, "name":"test2", "chkDisabled":true},\r
25         { "id":3, "name":"test3"}\r
26 ]</code></pre>\r
27 </div>\r
28 </div>