@balkangraph/orgchart.js 8.15.33 → 8.15.34
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 +23 -0
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -2810,6 +2810,18 @@ declare namespace OrgChart {
|
|
|
2810
2810
|
element: HTMLElement;
|
|
2811
2811
|
}
|
|
2812
2812
|
|
|
2813
|
+
|
|
2814
|
+
/**
|
|
2815
|
+
* Menu UI
|
|
2816
|
+
* ```typescript
|
|
2817
|
+
* let chart = new OrgChart("#tree", {
|
|
2818
|
+
* })
|
|
2819
|
+
* chart.onInit(() => {
|
|
2820
|
+
* chart.menuUI.show(chart.getMenuButton());
|
|
2821
|
+
* })
|
|
2822
|
+
* chart.load(nodes)
|
|
2823
|
+
* ```
|
|
2824
|
+
*/
|
|
2813
2825
|
interface menuUI {
|
|
2814
2826
|
init(obj: OrgChart, menu: { [key: string]: menu }): void;
|
|
2815
2827
|
/**
|
|
@@ -2847,6 +2859,15 @@ declare namespace OrgChart {
|
|
|
2847
2859
|
show(x: number | HTMLElement, y?: number, firstNodeId?: string | number, secondNodeId?: string | number, menu?: { [key: string]: menu }): void;
|
|
2848
2860
|
}
|
|
2849
2861
|
|
|
2862
|
+
/**
|
|
2863
|
+
* Circle Menu UI
|
|
2864
|
+
* ```typescript
|
|
2865
|
+
* var chart = new OrgChart('#tree', {});
|
|
2866
|
+
* chart.onInit(() => {
|
|
2867
|
+
* chart.nodeCircleMenuUI.show(1);
|
|
2868
|
+
* });
|
|
2869
|
+
* ```
|
|
2870
|
+
*/
|
|
2850
2871
|
interface circleMenuUI {
|
|
2851
2872
|
/**
|
|
2852
2873
|
* Inits circle menu instance
|
|
@@ -2856,6 +2877,8 @@ declare namespace OrgChart {
|
|
|
2856
2877
|
init(obj: OrgChart, menu: { [key: string]: menu }): void;
|
|
2857
2878
|
/**
|
|
2858
2879
|
* Shows circle menu
|
|
2880
|
+
*
|
|
2881
|
+
*
|
|
2859
2882
|
* @param nodeId
|
|
2860
2883
|
* @param menu
|
|
2861
2884
|
*/
|