No Description

setting.data.keep.parent.html 899B

12345678910111213141516171819202122232425262728
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Boolean</span><span class="path">setting.data.keep.</span>parent</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 = true</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 = true 的节点,即使该节点的子节点被全部删除或移走,依旧保持父节点状态。</p>
  16. </div>
  17. <h3>setting 举例</h3>
  18. <h4>1. 需要锁定父节点状态</h4>
  19. <pre xmlns=""><code>var setting = {
  20. data: {
  21. keep: {
  22. parent: true
  23. }
  24. }
  25. };
  26. ......</code></pre>
  27. </div>
  28. </div>