wesnolte / jOrgChart

A jQuery plugin to draw tree-like structures such as OrgCharts.
989 stars 675 forks source link

Show / Hide Branches that are not in use #62

Open Xamb opened 9 years ago

Xamb commented 9 years ago

It's possible to Show/Hide branches that are not in use?

For example, I have 3 main branches, but if the user clicks in the 2nd branch the 1st and 3rd branches will hide allowing the user only can see the nodes of the 2nd branch.

How can I do that?

Thanks for you help

dabeng commented 8 years ago

Hi @Xamb , what you described on above is what plugin OrgChart(derived from jOrgChart) is doing now. With horizontal and vertical arrows of every node of orgchart, users can show/hide child nodes, sibling nodes(you call them "branch" in your case) and parent node as shown in the following screen-capture. screen-capture

and this is the demo. Good luck! :blush: