Functions add() Adds a node to the tree. Can only be called before the tree is drawn. id, pid and name are required. Parameters Name Type Description id Number Unique identity number. pid Number Number refering to the parent node. The value for the root node has to be -1. name String Text label for the node. url String Url for the node. title String Title for the node. target String Target for the node. icon String Image file to use as the icon. Uses default if not specified. iconOpen String Image file to use as the open icon. Uses default if not specified. open Boolean Is the node open.