@balkangraph/orgchart.js 8.13.0 → 8.13.1
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 +26 -2
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -667,6 +667,7 @@ declare class OrgChart extends OrgChartBase {
|
|
|
667
667
|
searchUI: OrgChart.searchUI;
|
|
668
668
|
nodeMenuUI: OrgChart.menuUI;
|
|
669
669
|
filterUI: OrgChart.filterUI;
|
|
670
|
+
undoRedoUI: OrgChart.undoRedoUI;
|
|
670
671
|
nodeCircleMenuUI: OrgChart.circleMenuUI;
|
|
671
672
|
nodeContextMenuUI: OrgChart.menuUI;
|
|
672
673
|
menuUI: OrgChart.menuUI;
|
|
@@ -1248,8 +1249,31 @@ declare namespace OrgChart {
|
|
|
1248
1249
|
* Refreshes the UI buttonss
|
|
1249
1250
|
*/
|
|
1250
1251
|
refresh(): void;
|
|
1251
|
-
|
|
1252
|
-
|
|
1252
|
+
/**
|
|
1253
|
+
* @ignore
|
|
1254
|
+
*/
|
|
1255
|
+
on(type: "change", listener: (sender: undoRedoUI, args: any) => void | boolean): undoRedoUI;
|
|
1256
|
+
/**
|
|
1257
|
+
* Occurs when the undo redo buttons needs to updated.
|
|
1258
|
+
* ```typescript
|
|
1259
|
+
* var chart = new OrgChart('#tree', {});
|
|
1260
|
+
* chart.undoRedoUI.onChange((args) => {
|
|
1261
|
+
* //return false; to cancel the operation
|
|
1262
|
+
* });
|
|
1263
|
+
* ```
|
|
1264
|
+
* @category Event Listeners
|
|
1265
|
+
* @param listener
|
|
1266
|
+
*/
|
|
1267
|
+
onChange(listener: (args: {
|
|
1268
|
+
/**
|
|
1269
|
+
* Undo stack steps count
|
|
1270
|
+
*/
|
|
1271
|
+
undoStepsCount: number,
|
|
1272
|
+
/**
|
|
1273
|
+
* Redo stack steps count
|
|
1274
|
+
*/
|
|
1275
|
+
redoStepsCount: number
|
|
1276
|
+
}) => void): undoRedoUI;
|
|
1253
1277
|
instance: OrgChart;
|
|
1254
1278
|
}
|
|
1255
1279
|
|