Home » Javascript » Style node of Dabeng's OrgChart library

Style node of Dabeng's OrgChart library

Posted by: admin November 1, 2017 Leave a comment

Questions:

I am using the Dabeng Orgchart library (great library, btw), but I would like to customize the nodes, specifically creating a diamond instead of the squares they have in most examples. I have seen the createNode method, and I have found various css for creating a diamond but I cant figure out how to integrate it in dabeng org chart. What I want to do is display a diamond if some conditions are met, and the default square shapes if others are met. I have searched around google, but no example for changing the shape.

Answers: