# Edit Nodes - zTree methods

###### [ File Path: exedit/edit_fun.html ]

- ## 1, Explanation of 'addNodes / editName / removeNode / removeChildNodes' method

  - Use 'addNodes / editName / removeNode / removeChildNodes' method can also be achieved copy / move nodes.
  - Method 'cancelEditName' is effective, only when edit the node name. Please use it when necessary, this demo doesn't show how to use the method.
  - Use setting.data.keep.parent / leaf attribute, you can lock the parent node and leaf node.

  - Try to edit node:
    Whether trigger the callback when execution removeNode() method.
    [ add parent node ] [ add leaf node ] [ edit name ]
    [ remove node ] [ make child nodes to empty ]
    remove log:

  - How to use 'zTreeObj.addNodes / cancelEditName / editName / removeNode / removeChildNodes' method, please see the API documentation.

- ## 2, Explanation of setting

  - Same as 'Basic Edit Nodes'
  - Lock the parent / leaf node status, need to set setting.data.keep.parent / leaf attribute, see the API documentation for more related contents

- ## 3, Explanation of treeNode

  - Same as 'Basic Edit Nodes'