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

Parent nodes expand icon is vainshed #19

Closed p3rv3z closed 5 months ago

p3rv3z commented 2 years ago

After Clicked the Jane's parent node expand icon the tree expanded

But how can I get back to previous state like the above image. See the below image there is no option to get back to the previous state.

Please help me to find any solution for this issue. Thanks

ZornitsaPesheva commented 2 years ago

Could you please isolate the issue in Code?

p3rv3z commented 2 years ago

Here is the code

var family = new FamilyTree(document.getElementById("tree"), {
    mouseScrool: FamilyTree.action.none,
    nodeBinding: {
        field_0: "name"
    },
    nodes: [
        { id: 1, fid: 3, pids: [2], name: "John", gender: "male" },
        { id: 2, pids: [1], name: "Jane", gender: "female" },
        { id: 3, name: "Peter", gender: "male" },
        { id: 4, fid: 3, name: "Denice", gender:"female"},
    ]
});
ZornitsaPesheva commented 2 years ago

Thank you for reporting this. We will contact you when it is fixed.

ZornitsaPesheva commented 9 months ago

Hi. Did you mean the John's parents expand icon in this example?

ZornitsaPesheva commented 5 months ago

To be able to collapse back, you need to add button that set Jane as root.