@balkangraph/orgchart.js 8.7.2 → 8.8.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 CHANGED
@@ -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> | boolean,
1922
+ filterBy?: string | Array<string> | {[key: string]: { [key: string] : {
1923
+ checked: boolean,
1924
+ text?: string
1925
+ } }},
1906
1926
  /**
1907
1927
  * @ignore
1908
1928
  */