jQuery("#treeidhere").bind("move_node.jstree", function (e, data) {
console.log("from id: " + data.rslt.obj.attr("data-id"));
console.log("to id: " + (data.rslt.parent === -1 ? 0 : data.rslt.parent.attr("data-id"));
console.log("position: " + data.rslt.position);//starts from 0
});
No comments:
Post a Comment