Treefoot"

From Documentation
Line 1: Line 1:
init
+
{{ZKComponentReferencePageHeader}}
 +
 
 +
= Treefoot =
 +
 
 +
*Demonstration: N/A
 +
*Java API: <javadoc>org.zkoss.zul.Treefoot</javadoc>
 +
*JavaScript API: <javadoc directory="jsdoc">zul.sel.Treefoot</javadoc>
 +
 
 +
= Employment/Purpose =
 +
 
 +
A treefoot is main part of tree which contains set of footers. The set of footers is defined by a number of treefooter components. Each column will appear as a footer at the bottom of the tree.
 +
 
 +
 
 +
 
 +
= Example =
 +
 
 +
[[Image: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=
 +
 
 +
{| border="1" | width="100%"
 +
! <center>Name</center>
 +
! <center>Event Type</center>
 +
|-
 +
| None
 +
| None
 +
|}
 +
 
 +
=Supported Children=
 +
[[ZK_Component_Reference/Data/Tree/Treefooter | Treefooter]]
 +
 
 +
=Use cases=
 +
 
 +
[[ZK_Component_Reference/Data/Tree#Use_cases | Tree]]
 +
 
 +
=Version History=
 +
 
 +
{| border='1px' | width="100%"
 +
! Version !! Date !! Content
 +
|-
 +
| 5.0.1
 +
| 5/5/2010
 +
| Initialization
 +
|}
 +
 
 +
{{ZKComponentReferencePageFooter}}

Revision as of 09:47, 5 May 2010

Treefoot

Employment/Purpose

A treefoot is main part of tree which contains set of footers. The set of footers is defined by a number of treefooter components. Each column will appear as a footer at the bottom of the tree.


Example

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

Treefooter

Use cases

Tree

Version History

Version Date Content
5.0.1 5/5/2010 Initialization



Last Update : 2010/05/05

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