Javascript 如何仅在重新排序时使用jstree v3插件
我正在使用JStreeV3.0.8()Javascript 如何仅在重新排序时使用jstree v3插件,javascript,jquery,jstree,jstree-dnd,Javascript,Jquery,Jstree,Jstree Dnd,我正在使用JStreeV3.0.8() 如何仅在使用像at V1()这样的dnd插件时重新排序使用如下检查回调选项: "check_callback" : function (op, node, par, pos, more) { if(more && more.dnd) { return more.pos !== "i" && par.id == node.parent; } return true; }, 下面是一个演
如何仅在使用像at V1()这样的dnd插件时重新排序使用如下
检查回调选项:
"check_callback" : function (op, node, par, pos, more) {
if(more && more.dnd) {
return more.pos !== "i" && par.id == node.parent;
}
return true;
},
下面是一个演示:
效果非常好+1.许多人仍然受到CRRM示例的影响…不幸的是。。。