treeNode.chkDisabled.html 1.4 KB

12345678910111213141516171819202122232425262728
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Boolean</span><span class="path">treeNode.</span>chkDisabled</h2>
  4. <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
  5. <div class="desc">
  6. <p></p>
  7. <div class="longdesc">
  8. <p>1. Set node's checkbox / radio to disabled. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
  9. <p class="highlight_red">2. zTree support identification string 'true' & 'false'.</p>
  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>
  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>
  12. <p>Default: false</p>
  13. </div>
  14. </div>
  15. <h3>Boolean Format</h3>
  16. <div class="desc">
  17. <p class="highlight_red">true means: this node's checkbox / radio is disabled.</p>
  18. <p class="highlight_red">false means: this node's checkbox / radio is able.</p>
  19. </div>
  20. <h3>Examples of treeNode</h3>
  21. <h4>1. disable some node's checkbox / radio </h4>
  22. <pre xmlns=""><code>var nodes = [
  23. { "id":1, "name":"test1", "checked":true, "chkDisabled":true},
  24. { "id":2, "name":"test2", "chkDisabled":true},
  25. { "id":3, "name":"test3"}
  26. ]</code></pre>
  27. </div>
  28. </div>