setting.edit.enable.html 1.5 KB

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