setting.edit.drag.isMove.html 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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 class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
  5. <div class="desc">
  6. <p></p>
  7. <div class="longdesc">
  8. <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></p>
  9. <p>Default: true</p>
  10. </div>
  11. </div>
  12. <h3>Rules Description</h3>
  13. <div class="desc">
  14. <p>1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key or Cmd-key can copy node, don't press Ctrl-Key or Cmd-key can move node.</p>
  15. <p>2. If isCopy = true and isMove = false, when drag-drop node, will copy node.</p>
  16. <p>3. If isCopy = false and isMove = true, when drag-drop node, will move node.</p>
  17. <p>4. If isCopy = false and isMove = false, so disable to drag-drop node.</p>
  18. </div>
  19. <h3>Examples of setting</h3>
  20. <h4>1. all of the drag-drop operation will move node.</h4>
  21. <pre xmlns=""><code>var setting = {
  22. edit: {
  23. enable: true,
  24. drag: {
  25. isCopy: false,
  26. isMove: true
  27. }
  28. }
  29. };
  30. ......</code></pre>
  31. </div>
  32. </div>