TreeView.add

ListItem add (String type, String text)

Parameters

type The type of the child element, the string “item”.
text The localizable text label for the item.

Description

Adds an item to the top-level choices in this list.

Returns the item control object.