Add / Delete items

You can freely customize a tree view. This sample illustrates that the tree items can be easily added/deleted dynamically through the graphical user interface. You can insert new sibling or child node as well. This feature allows you to configure a DHTML tree menu effortlessly.

Insert new child item Item label

Insert new item next Item label

Delete item

  • zeros passed to the function for arguments 4-7 (function to call on select, images) mean the usage of default values for them
  • Last argument is a comma delimited string of the following possible value (upper case only):
  • SELECT - move selection to this node after inserting
  • CALL - call function on select
  • TOP - add node to the top position
  • CHILD - node has child items
  • CHECKED - checkbox is checked (if exists)