@balkangraph/orgchart.js 8.4.6 → 8.4.9
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 +3 -2
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
declare class OrgChart extends OrgChartBase {
|
|
4
4
|
nodes: { [key in any]: OrgChart.node };
|
|
5
5
|
isVisible: boolean;
|
|
6
|
+
visibleNodeIds: Array<number | string>;
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* @param element HTML element or string selector for example '#tree'
|
|
@@ -1084,7 +1085,7 @@ declare namespace OrgChart {
|
|
|
1084
1085
|
* @param nodeId
|
|
1085
1086
|
* @param menu
|
|
1086
1087
|
*/
|
|
1087
|
-
show(nodeId: string | number, menu
|
|
1088
|
+
show(nodeId: string | number, menu?: { [key: string]: menu }): void;
|
|
1088
1089
|
/**
|
|
1089
1090
|
* Hides circle menu
|
|
1090
1091
|
*/
|
|
@@ -1829,7 +1830,7 @@ declare namespace OrgChart {
|
|
|
1829
1830
|
* ```
|
|
1830
1831
|
* ```typescript
|
|
1831
1832
|
* var chart = new OrgChart('#tree', {
|
|
1832
|
-
* orderBy:
|
|
1833
|
+
* orderBy: {field: "orderId", desc: true},
|
|
1833
1834
|
* nodes: [
|
|
1834
1835
|
* { id: 10, pid: 1, orderId: 2 },
|
|
1835
1836
|
* { id: 11, pid: 1, orderId: 1 }
|