tree

Purpose

A tree consists of tree parts, the set of columns, the set of footers, and the tree body. The set of columns is defined by a number of treecol components, one for each column. Each column will appear as a header at the top of the tree. The second part, The set of footers is defined by a number of treefooter components, one for each column also. Each column will appear as a footer at the bottom of the tree. The third part, the tree body, contains the data to appear in the tree and is created with a treechildren component.

Examples

<z:window title="tree demo" border="normal" width="400px">
    <z:tree id="tree" rows="5">
        <z:treecols sizable="true">
            <z:treecol label="Name"/>
            <z:treecol label="Description"/>
        </z:treecols>
        <z:treechildren>
            <z:treeitem>
                <z:treerow>
                    <z:treecell label="Item 1"/>
                    <z:treecell label="Item 1 description"/>
                </z:treerow>
            </z:treeitem>
            <z:treeitem>
                <z:treerow>
                    <z:treecell label="Item 2"/>
                    <z:treecell label="Item 2 description"/>
                </z:treerow>
                <z:treechildren>
                    <z:treeitem>
                        <z:treerow>
                            <z:treecell label="Item 2.1"/>
                        </z:treerow>
                    </z:treeitem>
                    <z:treeitem>
                        <z:treerow>
                            <z:treecell label="Item 2.2"/>
                            <z:treecell label="Item 2.2 is something who cares"/>
                        </z:treerow>
                    </z:treeitem>
                </z:treechildren>
            </z:treeitem>
            <z:treeitem label="Item 3"/>
        </z:treechildren>
        <z:treefoot>
            <z:treefooter label="Count"/>
            <z:treefooter label="Summary"/>
        </z:treefoot>
    </z:tree>
</z:window>

Description

Attributes

ZK Official Reference

Component Reference

Show tree Component Reference

Java API

Show tree Java API