BALKANGraph / OrgChartJS

OrgChart JS is a simple, flexible and highly customizable organization chart plugin for presenting the structure of your organization and the relationships in an elegant way.
https://balkan.app/orgchartjs
252 stars 84 forks source link

Can I set layout for level which is not the last level? #771

Closed Fengzhen8023 closed 1 year ago

Fengzhen8023 commented 1 year ago

Hi Teams,

I have buyed OrgChartJS librarya and I got a problem.

I can set the layout for last level card, like:

image

If I collapsed the level 3 cards and it look like:

image

My question is: Can I set the layout for the level 2? Like:

image

plamen-peshev commented 1 year ago

You can use OrgChart.MIXED_LAYOUT_FOR_NODES_WITH_COLLAPSED_CHILDREN

We have created Code demo for you: https://code.balkan.app/conditional-layout-for-first-level#JS

Fengzhen8023 commented 1 year ago

It's working now. Thanks a lot.