Callback executed before drag node to collapsed parent node, The return value controls the auto expand behaviour of the parent node.
Default: null
zTree unique identifier: treeId, the tree is what the treeNode(parent node) is belong to.
JSON data object of the parent node which will be auto expanded
return true or false
If return false, zTree will not auto expand parent node.
function myBeforeDragOpen(treeId, treeNode) {
return false;
};
var setting = {
edit: {
enable: true
},
callback: {
beforeDragOpen: myBeforeDragOpen
}
};
......