@balkangraph/orgchart.js 8.14.47 → 8.14.48
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.
- package/README.md +17 -17
- package/orgchart.d.ts +2 -1
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
#  OrgChart JS
|
|
2
|
+
Build organizational chart app with BALKAN OrgChart JS JavaScript library. **OrgChart JS** is a simple, flexible and highly customizable organization chart plugin for presenting the structure of your organization and the relationships in an elegant way.
|
|
3
3
|
|
|
4
|
-

|
|
5
5
|
|
|
6
6
|
## [Demos](https://balkan.app/OrgChartJS/Demos/BasicUsage) [Docs](https://balkan.app/OrgChartJS/Docs/GettingStarted) [Download](https://balkan.app/OrgChartJS/Download) [Support](https://balkan.app/OrgChartJS/Support)
|
|
7
7
|
|
|
@@ -39,20 +39,20 @@ bower install orgchart.js
|
|
|
39
39
|
|
|
40
40
|
## Usage
|
|
41
41
|
```
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
42
|
+
<script src="https://balkan.app/js/orgchart.js"></script>
|
|
43
|
+
<div id="tree"/>
|
|
44
|
+
<script>
|
|
45
|
+
var chart = new OrgChart(document.getElementById("tree"), {
|
|
46
|
+
nodeBinding: {
|
|
47
|
+
field_0: "name"
|
|
48
|
+
},
|
|
49
|
+
nodes: [
|
|
50
|
+
{ id: 1, name: "Amber McKenzie" },
|
|
51
|
+
{ id: 2, pid: 1, name: "Ava Field" },
|
|
52
|
+
{ id: 3, pid: 1, name: "Peter Stevens" }
|
|
53
|
+
]
|
|
54
|
+
});
|
|
55
|
+
</script>
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
|