setting.edit.drag.isMove.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Boolean</span><span class="path">setting.edit.drag.</span>isMove</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>When drag-drop node, set whether to allow to move node. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span>
  10. </p>
  11. <p>Default: true</p>
  12. </div>
  13. </div>
  14. <h3>Rules Description</h3>
  15. <div class="desc">
  16. <p>1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key or Cmd-key can copy node,
  17. don't press Ctrl-Key or Cmd-key can move node.</p>
  18. <p>2. If isCopy = true and isMove = false, when drag-drop node, will copy node.</p>
  19. <p>3. If isCopy = false and isMove = true, when drag-drop node, will move node.</p>
  20. <p>4. If isCopy = false and isMove = false, so disable to drag-drop node.</p>
  21. </div>
  22. <h3>Examples of setting</h3>
  23. <h4>1. all of the drag-drop operation will move node.</h4>
  24. <pre xmlns=""><code>var setting = {
  25. edit: {
  26. enable: true,
  27. drag: {
  28. isCopy: false,
  29. isMove: true
  30. }
  31. }
  32. };
  33. ......</code></pre>
  34. </div>
  35. </div>