setting.edit.drag.isCopy.html 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Boolean</span><span class="path">setting.edit.drag.</span>isCopy</h2>
  4. <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
  5. <div class="desc">
  6. <p></p>
  7. <div class="longdesc">
  8. <p>拖拽时, 设置是否允许复制节点。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p>
  9. <p>默认值:true</p>
  10. </div>
  11. </div>
  12. <h3>规则说明</h3>
  13. <div class="desc">
  14. <p>1、isCopy = true; isMove = true 时,拖拽节点按下 Ctrl 或 Cmd 键表示 copy; 否则为 move</p>
  15. <p>2、isCopy = true; isMove = false 时,所有拖拽操作都是 copy</p>
  16. <p>3、isCopy = false; isMove = true 时,所有拖拽操作都是 move</p>
  17. <p>4、isCopy = false; isMove = false 时,禁止拖拽操作</p>
  18. </div>
  19. <h3>setting 举例</h3>
  20. <h4>1. 设置所有拖拽操作都是 copy</h4>
  21. <pre xmlns=""><code>var setting = {
  22. edit: {
  23. enable: true,
  24. drag: {
  25. isCopy: true,
  26. isMove: false
  27. }
  28. }
  29. };
  30. ......</code></pre>
  31. </div>
  32. </div>