BALKANGraph / FamilyTreeJS

Build family tree app with BALKAN FamilyTreeJS library. Family Tree also called a genealogy or a pedigree chart, is a chart representing family relationships in a conventional tree structure.
55 stars 16 forks source link

Not able to expand or collapse downwards #1

Closed tbshrr closed 1 year ago

tbshrr commented 2 years ago

I've tried all the way to enable expand and collapse like the one in OrgJs Tree. But not able to expand and collapse. Let me know if am missing something

ZornitsaPesheva commented 2 years ago

I have created an example for you: https://code.balkan.app/family-tree-js/expand-colllapse#JS

tbshrr commented 2 years ago

I have created an example for you: https://code.balkan.app/family-tree-js/expand-colllapse#JS

@ZornitsaPesheva Thanks for the help. But this doesn't work when there is a partner. If its just a single parent it works but not when there is a partner. Plus shows but minus doesn't. Below is the fiddle for the same example you gave.

https://jsfiddle.net/ux2p1bcL/

ZornitsaPesheva commented 2 years ago

We have created this demo for you: https://code.balkan.app/family-tree-js/expand-colllapse#JS

tbshrr commented 2 years ago

We have created this demo for you: https://code.balkan.app/family-tree-js/expand-colllapse#JS

@ZornitsaPesheva Thanks for the quick respponse. That was really good.. But i was wondering if it is possible to just keep minus between partners when it is expanded. and when clicked on minus it should collapse all the child along with partners.

ZornitsaPesheva commented 2 years ago

I have added minus here: https://code.balkan.app/org-chart-js/minus#JS