thi*_*hnk 2 javascript jquery jstree jstree-dnd
我正在使用 jsTree V3.0.8 ( http://www.jstree.com/ )
如何仅在使用 dnd 插件(如 V1)时重新排序(http://johntang.github.io/JsTree/_docs/dnd.html#demo2)
使用check_callback这样的选项:
"check_callback" : function (op, node, par, pos, more) {
if(more && more.dnd) {
return more.pos !== "i" && par.id == node.parent;
}
return true;
},
Run Code Online (Sandbox Code Playgroud)
这是一个演示: http: //jsfiddle.net/DGAF4/509/
| 归档时间: |
|
| 查看次数: |
1688 次 |
| 最近记录: |