@balkangraph/orgchart.js 8.4.25 → 8.5.0
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 +12 -2
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -1115,6 +1115,13 @@ declare namespace OrgChart {
|
|
|
1115
1115
|
on(type: "click" | "show" | "drag" | "drop" | "mouseenter" | "mouseout", listener: (sender: circleMenuUI, args: any, args1: any, args2: any) => void | boolean): circleMenuUI;
|
|
1116
1116
|
}
|
|
1117
1117
|
|
|
1118
|
+
interface keyNavigation {
|
|
1119
|
+
/**
|
|
1120
|
+
* Set focus to specified id on initial load
|
|
1121
|
+
*/
|
|
1122
|
+
focusId: number | string
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1118
1125
|
interface toolbarUI {
|
|
1119
1126
|
init(obj: OrgChart, toolbar: toolbar): void;
|
|
1120
1127
|
showLayout(): void;
|
|
@@ -1322,12 +1329,15 @@ declare namespace OrgChart {
|
|
|
1322
1329
|
* Enable keyboard navigation. Use "f" for find, arrows and space to navigate in the chart. Default value - *false*.
|
|
1323
1330
|
* ```typescript
|
|
1324
1331
|
* var chart = new OrgChart('#tree', {
|
|
1325
|
-
*
|
|
1332
|
+
* keyNavigation: true
|
|
1333
|
+
* });
|
|
1334
|
+
* var chart = new OrgChart('#tree', {
|
|
1335
|
+
* keyNavigation: { focusId: 5 }
|
|
1326
1336
|
* });
|
|
1327
1337
|
* ```
|
|
1328
1338
|
* {@link https://balkan.app/OrgChartJS/Docs/KeyNavigation | See doc...}
|
|
1329
1339
|
*/
|
|
1330
|
-
|
|
1340
|
+
keyNavigation?: boolean | OrgChart.keyNavigation,
|
|
1331
1341
|
/**
|
|
1332
1342
|
* Shows mini map over the expanded tree. Default value - *false*.
|
|
1333
1343
|
* ```typescript
|