Multiple Templates in one chart
You can specify two or more templates in one OrgChart JS, here is how you can use different template for Management departament nodes
-
Add a tag Management to the node data:
A tag is used to group nodes into sets. All nodes tagged with the same tag belongs to the same set.{ id: "2", tags: ["Management"] }
-
Define the template for the Management tag.
tags: { "Management": { template: "rony" } },
Now all nodes with tag Management will use rony template for the nodes, links, add/remove buttons, expand/collapse buttons and ripple.