setting.data.keep.leaf.html 849 B

12345678910111213141516171819202122232425262728
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Boolean</span><span class="path">setting.data.keep.</span>leaf</h2>
  4. <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
  5. <div class="desc">
  6. <p></p>
  7. <div class="longdesc">
  8. <p>zTree 的节点叶子节点属性锁,是否始终保持 isParent = false</p>
  9. <p>默认值:false</p>
  10. </div>
  11. </div>
  12. <h3>Boolean 格式说明</h3>
  13. <div class="desc">
  14. <p> true / false 分别表示 锁定 / 不锁定 叶子节点属性</p>
  15. <p class="highlight_red">如果设置为 true,则所有 isParent = false 的节点,都无法添加子节点。</p>
  16. </div>
  17. <h3>setting 举例</h3>
  18. <h4>1. 需要锁定叶子节点状态</h4>
  19. <pre xmlns=""><code>var setting = {
  20. data: {
  21. keep: {
  22. leaf: true
  23. }
  24. }
  25. };
  26. ......</code></pre>
  27. </div>
  28. </div>