How to disable movement in jsTree but not disable drag'n'drop plugin?

How to disable move in jsTree 1.0 but not disable dnd plugin?

Thanks.

+4
source share
2 answers

I have found a solution.

$("#tree").jstree({ //... "crrm" : { "move" : { "check_move" : function (m) { return false; } } } //... "plugins" : [ "crrm", "dnd" ] }); 
+5
source
  "crrm" : { "move" : { "check_move" : function (m) { if(m.cr.attr("id") == mrattr("id")){ return true; }else{ return false; } } } } 
+2
source

Source: https://habr.com/ru/post/1314781/


All Articles