comp • gb.web.gui • webtree • add

WebTree.Add (gb.web.gui)

Function Add ( Key As String, Text As String [ , Image As String, Parent As String, After As String ] ) As _WebTreeItem

Add an item to the view.

  • Key is the key of the new item.

  • Text is the text of the new item.

  • Image is the relative path of the image displayed besides the item. By default, no image is displayed.

  • Parent is the key of the parent item where the item will be inserted. By default, the new item is a root item.

  • After is the key of an item that the new item will directly follows. This item and the new item must have the same parent. By default, the new item become the last child of its parent.

The newly created item is returned.