I am absolutely new in Balkan FamilyTree JS.
I have a simple script https://codepen.io/igor-isaev/pen/XWLGVWM where top level the King and the Queen at top level are located. But I want to add another top level wife (with direct connection) for the King e.g. Victoria. And really don't understand how to do that, this doesn't works:
{ id: 3, pids:[1], name: "Queen Victory", title: "The Queen Mother", img: "https://cdn.balkan.app/shared/f2.png", gender: 'female' }
I understand that my question is very simple but after reading some docs I can't solve it by myself.
If I do this way records are the same level but no connection between
{id: 1, pids: [1], name: "King George VI", title: "01.01.1900 - 01.01.2020", img: "https://cdn.balkan.app/shared/f1.png", gender: 'male' },
{id: 2, pids: [2], name: "Queen Elizabeth", title: "The Queen Mother", img: "https://cdn.balkan.app/shared/f2.png", gender: 'female' },
{id: 3, pids: [3], name: "Queen Victory", title: "The Queen Mother", img: "https://cdn.balkan.app/shared/f2.png", gender: 'female' },
You need to read the documentation on how the FamilyTree JS works, starting from here: https://balkan.app/FamilyTreeJS/Docs/GettingStarted
pids are the partners of that id. You cannot be a partner of yourself.
Here is how you should add Victoria Queen: https://code.balkan.app/familytree-js/queen-victoria#JS