You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Supports exporting chart as a picture or pdf document.
18
19
- Supports pan and zoom
19
20
- Users can adopt multiple solutions to build up a huge organization chart(please refer to multiple-layers or hybrid layout sections)
20
-
- touch-enabled plugin for mobile divice
21
+
- touch-enabled plugin for mobile device
22
+
23
+
## CDN
24
+
Users could find the related CDN support for OrgChart's CSS and JavaScript.
25
+
26
+
https://cdnjs.com/libraries/orgchart
21
27
22
28
## Installation
23
29
Of course, you can directly use the standalone build by including dist/js/jquery.orgchart.js and dist/css/jquery.orgchart.css in your webapps.
@@ -34,7 +40,7 @@ $ npm install orgchart
34
40
```
35
41
require('orgchart') will load orgchart plugin onto the jQuery object. The orgchart module itself does not export anything.
36
42
37
-
## [Demo](https://rawgit.com/dabeng/OrgChart/master/demo/index.html) [All demos in one page](http://dabeng.github.io/OrgChart/)
43
+
## [Demos on github](https://rawgit.com/dabeng/OrgChart/master/demo/index.html) [Demos on codepen.io](https://codepen.io/collection/AWxGVb/)
38
44
### online demos
39
45
-[using ul datasource](https://rawgit.com/dabeng/OrgChart/master/demo/ul-datasource.html)(this feature comes from [Tobyee's good idea:blush:](https://github.com/dabeng/OrgChart/issues/1))
40
46
@@ -88,7 +94,7 @@ Users are allowed to drag & drop the nodes of orgchart when option "draggable" i
88
94
89
95
Furthermore, users can make use of option dropCriteria to inject their custom limitations on drag & drop. As shown below, we don't want an manager employee to be under a engineer under no circumstance.
90
96
91
-
-[I want a method that can decribe the hierarchy of orgchart](https://rawgit.com/dabeng/OrgChart/master/demo/get-hierarchy.html)
97
+
-[I want a method that can describe the hierarchy of orgchart](https://rawgit.com/dabeng/OrgChart/master/demo/get-hierarchy.html)
92
98
93
99
That's where getHierarchy() comes in.
94
100
@@ -215,10 +221,10 @@ var oc = $('#chartContainerId').orgchart(options);
215
221
<td>nodeId</td><td>string</td><td>no</td><td>"id"</td><td>It sets one property of datasource as unique identifier of every orgchart node.</td>
216
222
</tr>
217
223
<tr>
218
-
<td>nodeTemplate</td><td>function</td><td>no</td><td></td><td>It's a template generation function used to customize any complex internal structure of node. It recieves only one parameter: "data" stands for json datasoure which will be use to render one node.</td>
224
+
<td>nodeTemplate</td><td>function</td><td>no</td><td></td><td>It's a template generation function used to customize any complex internal structure of node. It receives only one parameter: "data" stands for json datasoure which will be use to render one node.</td>
219
225
</tr>
220
226
<tr>
221
-
<td>createNode</td><td>function</td><td>no</td><td></td><td>It's a callback function used to customize every orgchart node. It recieves two parameters: "$node" stands for jquery object of single node div; "data" stands for datasource of single node.</td>
227
+
<td>createNode</td><td>function</td><td>no</td><td></td><td>It's a callback function used to customize every orgchart node. It receives two parameters: "$node" stands for jquery object of single node div; "data" stands for datasource of single node.</td>
222
228
</tr>
223
229
<tr>
224
230
<td>exportButton</td><td>boolean</td><td>no</td><td>false</td><td>It enable the export button for orgchart.</td>
@@ -239,7 +245,7 @@ var oc = $('#chartContainerId').orgchart(options);
239
245
<td>dropCriteria</td><td>function</td><td>no</td><td></td><td>Users can construct their own criteria to limit the relationships between dragged node and drop zone. Furtherly, this function accept three arguments(draggedNode, dragZone, dropZone) and just only return boolen values.</td>
240
246
</tr>
241
247
<tr>
242
-
<td>initCompleted</td><td>function</td><td>no</td><td></td><td>It can often be useful to know when your table has fully been initialised, data loaded and rendered, particularly when using an ajax data source. It recieves one parament: "$chart" stands for jquery object of initialised chart.</td>
248
+
<td>initCompleted</td><td>function</td><td>no</td><td></td><td>It can often be useful to know when your table has fully been initialised, data loaded and rendered, particularly when using an ajax data source. It receives one parament: "$chart" stands for jquery object of initialised chart.</td>
0 commit comments