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

Property Dialog Needs Improvements #61

Closed HolyOne closed 6 months ago

HolyOne commented 1 year ago

I have some family data and I have images. The properties bar shows image urls. I cannot hide them. (The labels dont have proper Id/classnames so I couldnt hide)

Also Additionaly I want to place extra controls/html on top of properties dialog to show extra info but the component should support this.

image

Maybe if there was an event when the properties dialog opens, I could inject my own controls.

ZornitsaPesheva commented 1 year ago

Here is how to hive the link:

    var family = new FamilyTree(document.getElementById("tree"), {
        editForm: {
            generateElementsFromFields: false,
            elements: [
                { type: 'textbox', label: 'Full Name', binding: 'Name'},
                { type: 'date', label: 'Birth Date', binding: 'birthDate' }      
            ]
        }       
    });

Here is the doc page: https://balkan.app/FamilyTreeJS/Docs/Edit#configure