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

very basic question about Hiding elements inside the edit form #33

Closed alejandrosfr1223 closed 1 year ago

alejandrosfr1223 commented 1 year ago

Hi!

I just want to know how to hide an element inside the edit form... Like, for example, the Gender tag.

image

i cant find anything, and i want to hide it.

ZornitsaPesheva commented 1 year ago

Example:

    var chart = new OrgChart(document.getElementById("tree"), {
        editForm: {
            generateElementsFromFields: false,
            elements: [
                { type: 'textbox', label: 'Nombre', binding: 'id'}  
                { type: 'textbox', label: 'Genero', binding: 'Genero'}  
            ]
        }       
    });

From here: https://balkan.app/OrgChartJS/Docs/Edit#configure

alejandrosfr1223 commented 1 year ago

Perfect! it worked like a Charm!