JsTree与dnd插件,总是复制 [英] JsTree with dnd plugin, always copy
本文介绍了JsTree与dnd插件,总是复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望每个拖动操作都是一个副本而不是一个移动。
有一个copy_modifier可以工作好的,当按一个修饰符键,但我希望副本是没有修饰符的默认行为。
任何想法?
谢谢,
Adrian
解决方案
在 http://groups.google.com/group/jstree找到解决方案
配置jsTree时,我添加了以下部分:
crrm:{
move:{always_copy:multitree}
}
希望这有帮助,
Adrian
I have 2 trees using jsTree and dnd plugin.
I want that each drag operation to be a copy instead of a move.
There is a "copy_modifier" which works Ok when pressing a modifier key, but I want copy to be the default behavior without the modifier.
Any ideas?
Thanks,
Adrian
解决方案
Found a solution on http://groups.google.com/group/jstree
I added the following section when configuring jsTree:
"crrm": {
"move": { "always_copy": "multitree" }
}
Hope this helps,
Adrian
这篇关于JsTree与dnd插件,总是复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文