I am using jsTree V3.0.8 ( http://www.jstree.com/ )
how to reorder only when use dnd plugin like at V1( http://johntang.github.io/JsTree/_docs/dnd.html#demo2 )
Use the check_callback
option like this:
"check_callback" : function (op, node, par, pos, more) {
if(more && more.dnd) {
return more.pos !== "i" && par.id == node.parent;
}
return true;
},
Here is a demo: http://jsfiddle.net/DGAF4/509/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.