setting.data.keep.parent.html 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Boolean</span><span class="path">setting.data.keep.</span>parent</h2>
  4. <h3>Overview<span class="h3_info">[ depends on <span
  5. class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
  6. <div class="desc">
  7. <p></p>
  8. <div class="longdesc">
  9. <p>The parent node's lock, the parent node will lock 'isParent' attribute to true.</p>
  10. <p>Default: false</p>
  11. </div>
  12. </div>
  13. <h3>Boolean Format</h3>
  14. <div class="desc">
  15. <p> true means: lock the parent node, and <span class="highlight_red">if remove all of the parent node's child nodes, its 'isParent' attribute still keep to be true.</span>.
  16. </p>
  17. <p> false means: don't lock the parent node, and <span class="highlight_red">if remove all of the parent node's child nodes, its 'isParent' attribute will change to be false.</span>.
  18. </p>
  19. </div>
  20. <h3>Examples of setting</h3>
  21. <h4>1. lock the parent node</h4>
  22. <pre xmlns=""><code>var setting = {
  23. data: {
  24. keep: {
  25. parent: true
  26. }
  27. }
  28. };
  29. ......</code></pre>
  30. </div>
  31. </div>