Specify callback function, executed before the 'onDblClick' callback, The return value controls the 'onDblClick' callback.
Default: null
zTree unique identifier: treeId.
JSON data object of the node which is double clicked
If the DOM which dblclicked isn't a node, it will return null.
return true or false
If return false, ztree will not trigger the 'onDblClick' callback, no effect on other operations.
This callback function does not affect the auto expand of the parent node , please refer to setting.view.dblClickExpand properties.
function myBeforeDblClick(treeId, treeNode) {
return false;
};
var setting = {
callback: {
beforeDblClick: myBeforeDblClick
}
};
......