class Control.TreeList

Description

Creates a collapsible tree out of an unordered list element.

Control ID: treelist

For the layout to work correctly, the list should be formatted like the following (note that the sub-list items FOLLOW the item they collapse under, rather than being inside the <li>):

<ul class="treelist">
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Submenu</li>
    <ul id="submenu">
        <li>Item 3</li>
        <li>Item 4</li>
    </ul>
</ul>

Example: Tree List demo

Constructor

Instance methods

Instance properties