Tree"

From Documentation
Line 13: Line 13:
 
= Example =
 
= Example =
  
 +
[[Image:ZKComRef_Tree.PNG]]
  
 
+
<source lang="xml" >
 
+
<window title="tree demo" border="normal">
 +
    <tree id="tree" width="400px" rows="5">
 +
        <treecols sizable="true">
 +
            <treecol label="Name"/>
 +
            <treecol label="Description"/>
 +
        </treecols>
 +
        <treechildren>
 +
            <treeitem>
 +
                <treerow>
 +
                    <treecell label="Item 1"/>
 +
                    <treecell label="Item 1 description"/>
 +
                </treerow>
 +
            </treeitem>
 +
            <treeitem>
 +
                <treerow>
 +
                    <treecell label="Item 2"/>
 +
                    <treecell label="Item 2 description"/>
 +
                </treerow>
 +
                <treechildren>
 +
                    <treeitem>
 +
                        <treerow>
 +
                            <treecell label="Item 2.1"/>
 +
                        </treerow>
 +
                    </treeitem>
 +
                    <treeitem>
 +
                        <treerow>
 +
                            <treecell label="Item 2.2"/>
 +
                            <treecell label="Item 2.2 is something who cares"/>
 +
                        </treerow>
 +
                    </treeitem>
 +
                </treechildren>
 +
            </treeitem>
 +
            <treeitem label="Item 3"/>
 +
        </treechildren>
 +
        <treefoot>
 +
            <treefooter label="Count"/>
 +
            <treefooter label="Summary"/>
 +
        </treefoot>
 +
    </tree>
 +
</window>
 +
</source>
  
 
=Supported events=
 
=Supported events=

Revision as of 10:52, 27 April 2010

Tree

Employment/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.

Example

File:ZKComRef Tree.PNG

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

Supported events

Name
Event Type
None None

Supported Children

Treecols, Treechildren, Treefoot

Use cases

Version Description Example Location
5.0+    

Version History

Version Date Content
5.x.x x/x/20xx Initialization



Last Update : 2010/04/27

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.