## Function(event, treeId, treeNode)setting.callback.onNodeCreated

### Overview[ depends on jquery.ztree.core js ]

Used to capture the event when node's DOM is created.

Because v3.x uses lazy loading technology, so the nodes which doesn't create DOM when initialized will not trigger this callback, until its parent node is expanded.

Large amount of data to load, please note: do not set onNodeCreated, can improve performance as when initialized.

Default: null

### Function Parameter Descriptions

#### event js event Object

event Object

#### treeId String

zTree unique identifier: treeId, easy for users to control.

#### treeNode JSON

JSON data object of the node which DOM is created

### Examples of setting & function

#### 1. When node's DOM is created, alert info about 'tId' and 'name'.

    function zTreeOnNodeCreated(event, treeId, treeNode) {
        alert(treeNode.tId + ", " + treeNode.name);
    };
    var setting = {
    	callback: {
    		onNodeCreated: zTreeOnNodeCreated
    	}
    };
    ......