setting.edit.enable.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Boolean</span><span class="path">setting.edit.</span>enable</h2>
  4. <h3>Overview<span class="h3_info">[ depends on <span
  5. class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
  6. <div class="desc">
  7. <p></p>
  8. <div class="longdesc">
  9. <p>Set zTree is in edit mode</p>
  10. <p class="highlight_red">Please set this attribute before zTree initialization. If you need to change
  11. the edit mode after the initialization, please use zTreeObj.setEditable() method.</p>
  12. <p>Default: false</p>
  13. </div>
  14. </div>
  15. <h3>Boolean Format</h3>
  16. <div class="desc">
  17. <p> true means: zTree is in edit mode.</p>
  18. <p> false means: zTree is not in edit mode.</p>
  19. </div>
  20. <h3>Editing Rules Description</h3>
  21. <div class="desc">
  22. <p>1. When click the node, it will not open '<span class="highlight_red">node.url</span>' specified URL.
  23. <br/>2. Support for dynamic tree editing.
  24. <br/>3. You can drag-drop nodes, and support drag-drop nodes between multiple trees.
  25. <br/>4. Support use drag-drop to copy or move the node. (Reference: <span class="highlight_red">setting.edit.drag.isCopy / setting.edit.drag.isMove</span>)
  26. <br/>5. You can use the Edit button to modify the name attribute.
  27. <br/>6. You can use the Remove button to remove the node.
  28. <br/>
  29. </p>
  30. <p class="highlight_red">Please note that letter case, do not change.</p>
  31. </div>
  32. <h3>Examples of setting</h3>
  33. <h4>1. edit the tree</h4>
  34. <pre xmlns=""><code>var setting = {
  35. edit: {
  36. enable: true
  37. }
  38. };
  39. ......</code></pre>
  40. </div>
  41. </div>