Organigram Template"

From Documentation
(Created page with "{{ZKDevelopersReferencePageHeader}} Similar to Listbox, you can also define a customer rendering with a template ...")
 
Line 1: Line 1:
 
{{ZKDevelopersReferencePageHeader}}
 
{{ZKDevelopersReferencePageHeader}}
  
Similar to [[ZK Developer's Reference/MVC/View/Template/Listbox Template|Listbox]], you can also define a customer rendering with a template for a tree:
+
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:
  
 
<source lang="xml" >
 
<source lang="xml" >

Revision as of 01:55, 9 August 2018


Organigram Template


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

Last Update : 2018/08/09


Version Date Content
6.0.0 July 2011 The template feature was introduced.



Last Update : 2018/08/09

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