Used to capture the complete success event when execute ajax.
If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.
Default: null
event Object
zTree unique identifier: treeId.
JSON data object of the parent node
When load root nodes, treeNode = null
The actualnode data which got by ajax. User-friendly debugging.
The actual data's type of msg is affected by 'setting.async.dataType', please refer to JQuery API documentation.
function myOnAsyncSuccess(event, treeId, treeNode, msg) {
alert(msg);
};
var setting = {
callback: {
onAsyncSuccess: myOnAsyncSuccess
}
};
......