Search code examples
orgchart

Add customized node in OrgChart using orgchart.js


I want to add a custom node in org chart by using orgchart.js getting fromhttps://github.com/dabeng/OrgChart. A node which is to be create given in the .png file.enter image description here


Solution

  • I think you have two choices currently. One is callback "createNode". The other one is option "nodeTemplate". I'm sure you could be inspired by the following exampls on the OrgChart repo homepage(https://github.com/dabeng/OrgChart).

    1. I wanna customize the structure of node
    2. I want to use complex template to customize the internal structure of every node