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

Default data for first node #97

Closed pandabytes closed 6 months ago

pandabytes commented 6 months ago

Hello. Is there a way to provide default properties and values to the very first node? Specifically I'm referring to when the family tree is empty and there is this message It's lonely here, add your first node. When clicking on this message, it adds an empty gray node. I would like to know if it's possible to provide default data to this very first node, instead of the empty gray node.

image

image

ZornitsaPesheva commented 6 months ago

Here is a code demo: https://code.balkan.app/family-tree-js/custom-first-node#JS

pandabytes commented 6 months ago

Awesome, thanks for the example!