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

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

Used to capture the event when remove node.

1. If you set 'setting.callback.beforeRename',and return false, zTree will keep the editing name, and will not trigger the 'onRename' callback.

2. If you modity treeNode data, and use 'updateNode' function, zTree will not trigger the 'onRename' callback.

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 was rename.

### Examples of setting & function

#### 1. When rename node, alert info about 'tId' and 'name'.

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