# Advanced Edit Nodes

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

- ## 1, 'beforeDrag / onDrag'
  'beforeEditName'
  'beforeRemove / onRemove'
  'beforeRename / onRename' callback function

  - This demo shows the use of custom controls, the callback function to enhance the user experience, the operation can be compared with "Basic Edit Nodes" example.
  - This demo achieve the Add nodes button.
  - This demo achieve the confirmation when deleting node.
  - This demo use the 'showRenameBtn' to hide the rename button, when the treeNode's isLastNode = true
  - This demo use the 'showRemoveBtn' to hide the delete button, when the treeNode's isFirstNode = true
  - Can use 'beforeEditName' callback trigger custom editing.

  - After be familiar with these configurations, I think you can design a more flexible and rational rules!
    Whether select all text, when edit node's name.
    remove / rename log: RED is cancel edit (v3.5.13+)

- ## 2, Explanation of setting

  - Same as 'Basic Edit Nodes'

- ## 3, Explanation of treeNode

  - Same as 'Basic Edit Nodes'