treeNode.isHidden.html 1.1 KB

12345678910111213141516171819202122232425262728
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Boolean</span><span class="path">treeNode.</span>isHidden</h2>
  4. <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exhide</span> js ]</span></h3>
  5. <div class="desc">
  6. <p></p>
  7. <div class="longdesc">
  8. <p>Judge whether the node has been hidden.</p>
  9. <p class="highlight_red">1. When initialize zTree, the nodes which be set 'isHidden = true' will be hidden.</p>
  10. <p class="highlight_red"></p>
  11. <p class="highlight_red">2. Please don't change this attribute of the nodes which have been created. If you want to hide or show nodes, please use 'hideNode() / hideNodes() / showNode() / showNodes()' methods.</p>
  12. </div>
  13. </div>
  14. <h3>Boolean Format</h3>
  15. <div class="desc">
  16. <p> true means: this node is hidden.</p>
  17. <p> false means: this node is shown.</p>
  18. </div>
  19. <h3>Examples of treeNode</h3>
  20. <h4>1. Judge whether the first root node has been hidden.</h4>
  21. <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
  22. var sNodes = treeObj.getNodes();
  23. if (sNodes.length > 0) {
  24. var isHidden = sNodes[0].isHidden;
  25. }
  26. </code></pre>
  27. </div>
  28. </div>