I have a requirement where I need to restrict my jstree node not to move outside its parent. It can freely move inside within its parent.
This is the code I am trying:
$('#divUC').jstree({
'core': {
multiple: false,
'check_callback': function (o, n, p, i, m) {
if (o == "move_node" && n.type == "view") {
}
Here shortcuts indicates:
- o = operation,
- n = node,
- p = node_parent,
- i = node_position,
- m = more
You can check in callback for this.