Organigram Template"
From Documentation
Charlesqiu (talk | contribs) |
Charlesqiu (talk | contribs) |
||
Line 30: | Line 30: | ||
! Version !! Date !! Content | ! Version !! Date !! Content | ||
|- | |- | ||
− | | 6 | + | | 8.6.0 |
− | | | + | | Oct 2018 |
− | | The | + | | The organigram component was introduced. |
|} | |} | ||
{{ZKDevelopersReferencePageFooter}} | {{ZKDevelopersReferencePageFooter}} |
Revision as of 10:33, 1 November 2018
- Available for ZK:
[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. |