Licenced version installation
This document shows you haw to install the licensed version.
-
Download the licensed version from your account.
-
Install
-
-
If you don't use frontend frameworks, you just have to replate the trial familytree.js with the licensed one.
-
If you use frameworks follow the instructions bellow:
-
Extract the package and edit the familytree.d.ts file to add the following row at the end of it:
export default FamilyTree
- Create a folder balkanapp in \src\assets and add your extracted familytree.js and familytree.d.ts files there.
-
Add the familytree.js file in scripts in your angular.json file.
"scripts": [ "src/assets/balkanapp/familytree.js" ]
-
In your app.component.ts add this reference:
import FamilyTree from "src/assets/balkanapp/familytree";
- Add the extracted familytree.js in your project \src\ folder.
-
If you have used the trial version untill now, delete this reference:
import FamilyTree from "@balkangraph/familytree.js";
-
In your mytree.js file add this reference:
import FamilyTree from "./familytree.js";
-
If you use TypeScript you need to add this in the end of the .d.ts file:
export default FamilyTree
-
Extract the package and edit the familytree.js file to add the following row at the end of it:
export default FamilyTree
- Add your extracted familytree.js file to \src\assets folder.
-
In your OrgChart.vue file add this reference:
import FamilyTree from "../assets/familytree";
-
Extract the package and edit the familytree.d.ts file to add the following row at the end of it:
-
-
Clear the browser cache (Ctrl+F5) if needed and test with this:
console.log(FamilyTree.isTrial()
Warning!
If you are using any old framework version, you may need this installation guide.