Open Almo7aya opened 6 years ago
Look like you have an example in the demos:
https://github.com/dabeng/OrgChart/blob/master/demo/default-collapsed.html
So, simply add the 'collapsed' property to 'true' on the node that you want to be collapsed by default.
But is there any onCollapsed event that return node info like {id, collapsed, etc...?} I think @Almo7aya is talking about that not just want to be collapsed by default but catch current state of chart after many expend or collapsed done by user.
I am sure there must be, Its a question of how and/or if there is any sample example?
Hello, What if i want to cache the current state of the orgchart to the next reload, like if i collapsed some nodes i want in the next visite the orgchart be with collapsed nodes.