Show / Hide Table of Contents

Import

BALKAN FamilyTreeJS supports importing from CSV, XML and JSON files:

CSV

 
  var family = new FamilyTree(document.getElementById("tree"), {
      menu: {
          importCSV: { 
              text: "Import CSV",
              icon: FamilyTree.icon.csv(24,24, '#7A7A7A'),
              onClick: function(){ family.importCSV(); }
          },
      ...
      },

  });    
    

XML

 
  var family = new FamilyTree(document.getElementById("tree"), {
      menu: {
          importXML: { 
              text: "Import XML",
              icon: FamilyTree.icon.xml(24,24, '#7A7A7A'),
              onClick: function(){ family.importXML(); }
          },
      ...
      },

  });    
    

JSON

 
  var family = new FamilyTree(document.getElementById("tree"), {
      menu: {
          importXML: { 
              text: "Import XML",
              icon: FamilyTree.icon.xml(24,24, '#7A7A7A'),
              onClick: function(){ family.importXML(); }
          },
      ...
      },

  });    
    

This is a demo for importing. (You could export, edit the file and then import it agian.)