The TreeView control displays a hierarchical list which may contain text, checkboxes, images, or arbitrary HTML content.
A TreeView is typically used to display the headings in a document,
the entries in an index, the files and directories on a disk,
or any other kind of information that might usefully be displayed as a hierarchy.
To create trees, you will normally have to set three attributes:
It is an array that contains the hierarchical data. Each item in the array contains information about a node and (optionally) an array of child nodes.
It defines the name of the property in the items that contains the text to be displayed in the tree nodes. By default, this property is set to the string 'header'.
It defines the name of the property in the items that contains the array of child nodes. By default, this property is set to the string 'items'.
There are also properties for binding node images, checkboxes, and collapsed state to the source array.