Specify callback function, executed before the 'onMouseDown' callback, The return value controls the 'onMouseDown' callback.
Default: null
zTree unique identifier: treeId.
JSON data object of the node which mouse over
If the DOM which mouse over isn't a node, it will return null.
return true or false
If return false, zTree will not trigger the 'onMouseDown' callback, no effect on other operations.
function myBeforeMouseDown(treeId, treeNode) {
return false;
};
var setting = {
callback: {
beforeMouseDown: myBeforeMouseDown
}
};
......