@balkangraph/orgchart.js 8.14.53 → 8.14.54
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/orgchart.d.ts +35 -34
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -2339,33 +2339,6 @@ declare namespace OrgChart {
|
|
|
2339
2339
|
* ```
|
|
2340
2340
|
*/
|
|
2341
2341
|
exportUrl?: string,
|
|
2342
|
-
/**
|
|
2343
|
-
* Collapse specified level of the chart and its children if allChildren is true.
|
|
2344
|
-
* ```typescript
|
|
2345
|
-
* var chart = new OrgChart('#tree', {
|
|
2346
|
-
* collapse: {level: 2, allChildren: true}
|
|
2347
|
-
* });
|
|
2348
|
-
* ```
|
|
2349
|
-
*/
|
|
2350
|
-
collapse?: {
|
|
2351
|
-
level: number,
|
|
2352
|
-
allChildren?: boolean
|
|
2353
|
-
},
|
|
2354
|
-
/**
|
|
2355
|
-
* Expand specified node ids and its children if allChildren is true. The expand option works only if collapse is set.
|
|
2356
|
-
*
|
|
2357
|
-
* In the example above the second level of the chart will be collapsed but node with id 155 and its children will be expanded.
|
|
2358
|
-
* ```typescript
|
|
2359
|
-
* var chart = new OrgChart('#tree', {
|
|
2360
|
-
* collapse: {level: 2, allChildren: true},
|
|
2361
|
-
* expand: {nodes: [155], allChildren: true}
|
|
2362
|
-
* });
|
|
2363
|
-
* ```
|
|
2364
|
-
*/
|
|
2365
|
-
expand?: {
|
|
2366
|
-
nodes?: Array<string | number>,
|
|
2367
|
-
allChildren?: boolean
|
|
2368
|
-
},
|
|
2369
2342
|
/**
|
|
2370
2343
|
* The align option specifies the alignment of the nodes inside Org Chart JS.
|
|
2371
2344
|
* - OrgChart.align.center - centered
|
|
@@ -2733,14 +2706,42 @@ declare namespace OrgChart {
|
|
|
2733
2706
|
|
|
2734
2707
|
interface options {
|
|
2735
2708
|
/**
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2709
|
+
* With the drag and drop features enabled you can move nodes easily and change the tree structure. Default value - *false*.
|
|
2710
|
+
* ```typescript
|
|
2711
|
+
* var chart = new OrgChart('#tree', {
|
|
2712
|
+
* enableDragDrop: true
|
|
2713
|
+
* });
|
|
2714
|
+
* ```
|
|
2715
|
+
*/
|
|
2743
2716
|
enableDragDrop?: boolean,
|
|
2717
|
+
/**
|
|
2718
|
+
* Collapse specified level of the chart and its children if allChildren is true.
|
|
2719
|
+
* ```typescript
|
|
2720
|
+
* var chart = new OrgChart('#tree', {
|
|
2721
|
+
* collapse: {level: 2, allChildren: true}
|
|
2722
|
+
* });
|
|
2723
|
+
* ```
|
|
2724
|
+
*/
|
|
2725
|
+
collapse?: {
|
|
2726
|
+
level: number,
|
|
2727
|
+
allChildren?: boolean
|
|
2728
|
+
},
|
|
2729
|
+
/**
|
|
2730
|
+
* Expand specified node ids and its children if allChildren is true. The expand option works only if collapse is set.
|
|
2731
|
+
*
|
|
2732
|
+
* In the example above the second level of the chart will be collapsed but node with id 155 and its children will be expanded.
|
|
2733
|
+
* ```typescript
|
|
2734
|
+
* var chart = new OrgChart('#tree', {
|
|
2735
|
+
* collapse: {level: 2, allChildren: true},
|
|
2736
|
+
* expand: {nodes: [155], allChildren: true}
|
|
2737
|
+
* });
|
|
2738
|
+
* ```
|
|
2739
|
+
*/
|
|
2740
|
+
expand?: {
|
|
2741
|
+
nodes?: Array<string | number>,
|
|
2742
|
+
allChildren?: boolean
|
|
2743
|
+
},
|
|
2744
2744
|
}
|
|
2745
|
+
|
|
2745
2746
|
}
|
|
2746
2747
|
export default OrgChart
|