Used to capture the drag event when drag node.
If you set 'setting.callback.beforeDrag',and return false, zTree will stop drag, and will not trigger the 'onDragMove' & 'onDrag' callback.
Default: null
event Object
zTree unique identifier: treeId, the id of the containing tree.
A collection of the nodes which will be dragged
function myOnDrag(event, treeId, treeNodes) {
alert(treeNodes.length);
};
var setting = {
callback: {
onDrag: myOnDrag
}
};
......