@balkangraph/orgchart.js 8.7.1 → 8.8.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 +22 -2
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -614,7 +614,7 @@ declare class OrgChart extends OrgChartBase {
|
|
|
614
614
|
toolbarUI: OrgChart.toolbarUI;
|
|
615
615
|
config: OrgChart.options
|
|
616
616
|
|
|
617
|
-
static fileUploadDialog(
|
|
617
|
+
static fileUploadDialog(callback: (file: any) => void): void;
|
|
618
618
|
static isMobile(): boolean;
|
|
619
619
|
/**
|
|
620
620
|
* Checks if the used libraris is licnsed or not
|
|
@@ -1058,6 +1058,15 @@ declare namespace OrgChart {
|
|
|
1058
1058
|
interface filterUI {
|
|
1059
1059
|
init(instance: OrgChart): void;
|
|
1060
1060
|
update(): void;
|
|
1061
|
+
/**
|
|
1062
|
+
* Opens filter Tab
|
|
1063
|
+
* @param filterTabName the name of the filter tab
|
|
1064
|
+
*/
|
|
1065
|
+
show(filterTabName): void;
|
|
1066
|
+
/**
|
|
1067
|
+
* Hides the filter tabs
|
|
1068
|
+
*/
|
|
1069
|
+
hide(): void;
|
|
1061
1070
|
addFilterTag(data: object): boolean;
|
|
1062
1071
|
}
|
|
1063
1072
|
|
|
@@ -1901,8 +1910,19 @@ declare namespace OrgChart {
|
|
|
1901
1910
|
* filterBy: ['country', 'title']
|
|
1902
1911
|
* });
|
|
1903
1912
|
* ```
|
|
1913
|
+
* ```typescript
|
|
1914
|
+
* var chart = new OrgChart('#tree', {
|
|
1915
|
+
* filterBy: {
|
|
1916
|
+
* name: { 'name 2': { checked: false, text: 'My text 2'} },
|
|
1917
|
+
* title: {}
|
|
1918
|
+
* }
|
|
1919
|
+
* });
|
|
1920
|
+
* ```
|
|
1904
1921
|
*/
|
|
1905
|
-
filterBy?: string | Array<string> |
|
|
1922
|
+
filterBy?: string | Array<string> | {[key: string]: { [key: string] : {
|
|
1923
|
+
checked: boolean,
|
|
1924
|
+
text?: string
|
|
1925
|
+
} }},
|
|
1906
1926
|
/**
|
|
1907
1927
|
* @ignore
|
|
1908
1928
|
*/
|