balkan-orgchart-react 9.3.11 → 9.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/readme.md +8 -9
package/package.json CHANGED
@@ -54,7 +54,7 @@
54
54
  "url": "git+https://github.com/BALKANGraph/OrgChartReact.git"
55
55
  },
56
56
  "dependencies": {
57
- "balkan-orgchart-js": "^9.3.11"
57
+ "balkan-orgchart-js": "^9.3.14"
58
58
  },
59
- "version": "9.3.11"
59
+ "version": "9.3.14"
60
60
  }
package/readme.md CHANGED
@@ -33,20 +33,19 @@ yarn add balkan-orgchart-react
33
33
 
34
34
 
35
35
 
36
- ## Declarative Usage
36
+ ## Usage
37
37
 
38
38
  ```js
39
39
 
40
- import {OrgChartReact, Employee} from "balkan-orgchart-react";
40
+ import {OrgChartReact} from "balkan-orgchart-react";
41
41
 
42
42
  export const ChartExample = () => {
43
- return <OrgChartReact nodeBinding={{ field_0: 'name', field_1: 'title', img_0: 'photo'}} >
44
- <Employee name='Denny Curtis' title='CEO' photo='https://cdn.balkan.app/shared/a/6.jpg'>
45
- <Employee name='Lexie Cole' title='QA Lead' photo='https://cdn.balkan.app/shared/a/5.jpg'></Employee>
46
- <Employee name='Janae Barrett' title='Technical Director' photo='https://cdn.balkan.app/shared/a/4.jpg'></Employee>
47
- <Employee name='Aaliyah Webb' title='Assistant' photo='https://cdn.balkan.app/shared/a/3.jpg'></Employee>
48
- </Employee>
49
- </OrgChartReact>
43
+ return <OrgChartReact nodeBinding={{ field_0: 'name'}} data={[
44
+ { id: 1, name: "Denny Curtis" },
45
+ { id: 2, pid: 1, name: "Ashley Barnett" },
46
+ { id: 3, pid: 1, name: "Caden Ellison" }
47
+ ]} >
48
+ </OrgChartReact>
50
49
  }
51
50
 
52
51
  ```