jstree dnd restriction using angularjs -


i trying restrict nodes dropping particular nodes using angularjs. overriding of jstree events move_node, dnd_move.vakata. nothing works.

you can't override events - react them. config option looking core.check_callback. angular - depends on wrapper using - not use angular myself can't there - make sure use core.check_callback - callback gets executed structure changes happen:

core : {   check_callback : function (op, node, parent, position, more) {     if(more && more.dnd) {       // checks here , return false prevent drop        // or return true allow       // depending on node / parent / position arguments     }     return true;   },... 

Comments