No Description

treeNode.isHidden.html 1019B

123456789101112131415161718192021222324252627
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Boolean</span><span class="path">treeNode.</span>isHidden</h2>
  4. <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exhide</span> 扩展 js ]</span></h3>
  5. <div class="desc">
  6. <p></p>
  7. <div class="longdesc">
  8. <p>判断 treeNode 节点是否被隐藏。</p>
  9. <p class="highlight_red">1、初始化 zTree 时,如果节点设置 isHidden = true,会被自动隐藏</p>
  10. <p class="highlight_red">2、请勿对已加载的节点修改此属性,隐藏 / 显示 请使用 hideNode() / hideNodes() / showNode() / showNodes() 方法</p>
  11. </div>
  12. </div>
  13. <h3>Boolean 格式说明</h3>
  14. <div class="desc">
  15. <p> true 表示被隐藏</p>
  16. <p> false 表示被显示</p>
  17. </div>
  18. <h3>treeNode 举例</h3>
  19. <h4>1. 查看第一个根节点是否被隐藏</h4>
  20. <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
  21. var sNodes = treeObj.getNodes();
  22. if (sNodes.length > 0) {
  23. var isHidden = sNodes[0].isHidden;
  24. }
  25. </code></pre>
  26. </div>
  27. </div>