@balkangraph/orgchart.js 8.10.16 → 8.10.18
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 +4 -2
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -84,8 +84,9 @@ declare class OrgChart extends OrgChartBase {
|
|
|
84
84
|
/**
|
|
85
85
|
* Load nodes data.
|
|
86
86
|
* @param data node data array
|
|
87
|
+
* @param callback function called after the load
|
|
87
88
|
*/
|
|
88
|
-
load(data: Array<object
|
|
89
|
+
load(data: Array<object>, callback?: () => void): OrgChart;
|
|
89
90
|
|
|
90
91
|
/**
|
|
91
92
|
* Updates the node data, redraws the chart and fires update event.
|
|
@@ -98,8 +99,9 @@ declare class OrgChart extends OrgChartBase {
|
|
|
98
99
|
/**
|
|
99
100
|
* Loads nodes from xml.
|
|
100
101
|
* @param xml Xml with node structure
|
|
102
|
+
* @param callback function called after the load
|
|
101
103
|
*/
|
|
102
|
-
loadXML(xml: string): OrgChart;
|
|
104
|
+
loadXML(xml: string, callback?: () => void): OrgChart;
|
|
103
105
|
/**
|
|
104
106
|
* Gets nodes as xml.
|
|
105
107
|
*/
|