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.
50 stars 16 forks source link

add menu (top right corner) item dynamically #94

Closed zeraati closed 6 months ago

zeraati commented 6 months ago

How can I add items to the menu (top right corner) dynamically after page loaded? Untitled

ZornitsaPesheva commented 6 months ago

Please explain what you need to do with screenshots if needed.

zeraati commented 6 months ago

The data of several family trees are stored separately in json files on the server An API takes their list from the server and displays it in the output Therefore, every time I call the API, I want the link related to the load data of the families on the server to be added to the menu - without reloading the page.

Summary: We have an API that I want to add a series of items to menus based on its output without reloading the page.

ZornitsaPesheva commented 6 months ago

Please check if this demo is what you need: https://code.balkan.app/family-tree-js/change-config#JS