Callback for mouse down.
If you set 'setting.callback.beforeMouseDown',and return false, zTree will not trigger the 'onMouseDown' callback.
Default: null
event Object
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.
function myOnMouseDown(event, treeId, treeNode) {
alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
};
var setting = {
callback: {
onMouseDown: myOnMouseDown
}
};
......