Organigram Template"

From Documentation
m ((via JWB))
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
  {{ZK EE}}
 
  {{ZK EE}}
[Since 8.6.0]
+
{{versionSince |8.6.0}}
  
 
Similar to [[ZK Developer's Reference/MVC/View/Template/Listbox Template|Listbox]], you can also define a customer rendering with a template for an organigram:
 
Similar to [[ZK Developer's Reference/MVC/View/Template/Listbox Template|Listbox]], you can also define a customer rendering with a template for an organigram:
Line 26: Line 26:
  
 
=Version History=
 
=Version History=
{{LastUpdated}}
+
 
{| border='1px' | width="100%"
+
{| class='wikitable' | width="100%"
 
! Version !! Date !! Content
 
! Version !! Date !! Content
 
|-
 
|-
| 6.0.0
+
| 8.6.0
| July 2011
+
| Oct 2018
| The template feature was introduced.
+
| The organigram component was introduced.
 
|}
 
|}
  
 
{{ZKDevelopersReferencePageFooter}}
 
{{ZKDevelopersReferencePageFooter}}

Revision as of 07:34, 8 July 2022


Organigram Template


  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ee.png

Since 8.6.0

Similar to Listbox, you can also define a customer rendering with a template for an organigram:

	<zscript><![CDATA[
	DefaultTreeNode root = new DefaultTreeNode(null, new DefaultTreeNode[]{
		new DefaultTreeNode("Item1", new DefaultTreeNode[]{
			new DefaultTreeNode("Item2"), new DefaultTreeNode("Item3"), new DefaultTreeNode("Item4")
		})
	});
	DefaultTreeModel model = new DefaultTreeModel(root);
	model.addOpenPath(new int[]{0});
	]]></zscript>
	<organigram model="${model}">
		<template name="model">
			<orgitem>
				<orgnode label="${each.data}"/>
			</orgitem>
		</template>
	</organigram>

Version History

Version Date Content
8.6.0 Oct 2018 The organigram component was introduced.



Last Update : 2022/07/08

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