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

Changing the style of the node menu #89

Closed zeraati closed 7 months ago

zeraati commented 7 months ago

The node menu is as follows Screenshot_3

And I want to style it so that it looks like the picture below Screenshot_2

How can I change the style of node menus?

ZornitsaPesheva commented 7 months ago

This is not possible out of the box but you can try to do it with CSS. The color you can set this way: edit: { text: "Edit", icon: OrgChart.icon.edit(18, 18, '#039BE5') },

zeraati commented 7 months ago

So, do I have to change the source code to display the menu like this? It is not possible to customize the appearance without changing the source?

Given that my requested menu shape works well - is it possible to add it as a default in the menus in the app? There is already an example circular menu in the app, this should be added as well

ZornitsaPesheva commented 7 months ago

If you change the source code, we may not be able to support you. We cannot add all examples in the source code as we are trying to keep it simple and lightweight.