balkan-orgchart-react-community 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-Community.git"
55
55
  },
56
56
  "dependencies": {
57
- "balkan-orgchart-js-community": "^9.3.11"
57
+ "balkan-orgchart-js-community": "^9.3.14"
58
58
  },
59
- "version": "9.3.11"
59
+ "version": "9.3.14"
60
60
  }
package/readme.md CHANGED
@@ -35,20 +35,19 @@ yarn add balkan-orgchart-react-community
35
35
 
36
36
 
37
37
 
38
- ## Declarative Usage
38
+ ## Usage
39
39
 
40
40
  ```js
41
41
 
42
- import {OrgChartReact, Employee} from "balkan-orgchart-react-community";
42
+ import {OrgChartReact} from "balkan-orgchart-react";
43
43
 
44
44
  export const ChartExample = () => {
45
- return <OrgChartReact nodeBinding={{ field_0: 'name', field_1: 'title', img_0: 'photo'}} >
46
- <Employee name='Denny Curtis' title='CEO' photo='https://cdn.balkan.app/shared/a/6.jpg'>
47
- <Employee name='Lexie Cole' title='QA Lead' photo='https://cdn.balkan.app/shared/a/5.jpg'></Employee>
48
- <Employee name='Janae Barrett' title='Technical Director' photo='https://cdn.balkan.app/shared/a/4.jpg'></Employee>
49
- <Employee name='Aaliyah Webb' title='Assistant' photo='https://cdn.balkan.app/shared/a/3.jpg'></Employee>
50
- </Employee>
51
- </OrgChartReact>
45
+ return <OrgChartReact nodeBinding={{ field_0: 'name'}} data={[
46
+ { id: 1, name: "Denny Curtis" },
47
+ { id: 2, pid: 1, name: "Ashley Barnett" },
48
+ { id: 3, pid: 1, name: "Caden Ellison" }
49
+ ]} >
50
+ </OrgChartReact>
52
51
  }
53
52
 
54
53
  ```