@balkangraph/orgchart.js 8.16.8 → 8.16.9
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 +57 -2
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -2764,6 +2764,7 @@ declare namespace OrgChart {
|
|
|
2764
2764
|
* @ignore
|
|
2765
2765
|
*/
|
|
2766
2766
|
init(obj: OrgChart): void;
|
|
2767
|
+
|
|
2767
2768
|
/**
|
|
2768
2769
|
* The on() method of the searchUI interface sets up a function that will be called whenever the specified event is delivered to the target. *
|
|
2769
2770
|
* ```typescript
|
|
@@ -2778,6 +2779,7 @@ declare namespace OrgChart {
|
|
|
2778
2779
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
2779
2780
|
*/
|
|
2780
2781
|
on(type: "add-item" | "show-items" | "hide" | "searchclick" , listener: (sender: searchUI, args: any, args1: any, args2: any) => void | boolean): searchUI;
|
|
2782
|
+
|
|
2781
2783
|
/**
|
|
2782
2784
|
* Hides the search grid
|
|
2783
2785
|
* ```typescript
|
|
@@ -2789,23 +2791,76 @@ declare namespace OrgChart {
|
|
|
2789
2791
|
* ```
|
|
2790
2792
|
*/
|
|
2791
2793
|
hide(): void;
|
|
2794
|
+
|
|
2792
2795
|
/**
|
|
2793
2796
|
* Finds filed data by specified value
|
|
2797
|
+
* ```typescript
|
|
2798
|
+
* let chart = new OrgChart("#tree", {});
|
|
2799
|
+
* chart.onInit(() => {
|
|
2800
|
+
* chart.searchUI.find("Denny");
|
|
2801
|
+
* });
|
|
2802
|
+
* chart.load(nodes)
|
|
2803
|
+
* ```
|
|
2794
2804
|
* @param value search for value
|
|
2795
2805
|
*/
|
|
2796
2806
|
find(value: string): void;
|
|
2807
|
+
|
|
2808
|
+
/**
|
|
2809
|
+
* ```typescript
|
|
2810
|
+
* OrgChart.searchUI.createItem = function (img, id, first, second) {
|
|
2811
|
+
* return
|
|
2812
|
+
* `<tr data-search-item-id="${id}">
|
|
2813
|
+
* <td class="boc-search-image-td">
|
|
2814
|
+
* <div class="boc-search-photo" style="background-image: url(${img})"></div>
|
|
2815
|
+
* </td>
|
|
2816
|
+
* <td class="boc-search-text-td">${first} <br/>${second}</td>
|
|
2817
|
+
* </tr>`;
|
|
2818
|
+
* };
|
|
2819
|
+
* ```
|
|
2820
|
+
* @param img
|
|
2821
|
+
* @param id
|
|
2822
|
+
* @param first
|
|
2823
|
+
* @param second
|
|
2824
|
+
*/
|
|
2797
2825
|
createItem(img: string, id: string | number, first: string, second: string): string;
|
|
2826
|
+
|
|
2827
|
+
/**
|
|
2828
|
+
* @ignore
|
|
2829
|
+
*/
|
|
2798
2830
|
helpView(): string;
|
|
2831
|
+
|
|
2832
|
+
/**
|
|
2833
|
+
* @ignore
|
|
2834
|
+
*/
|
|
2799
2835
|
addMatchTag(id: string | number) : boolean;
|
|
2836
|
+
|
|
2837
|
+
/**
|
|
2838
|
+
* Input field
|
|
2839
|
+
* ```typescript
|
|
2840
|
+
* let chart = new OrgChart("#tree", {});
|
|
2841
|
+
* chart.onInit(() => {
|
|
2842
|
+
* chart.searchUI.input.focus();
|
|
2843
|
+
* });
|
|
2844
|
+
* chart.load(nodes)
|
|
2845
|
+
* ```
|
|
2846
|
+
*/
|
|
2800
2847
|
input: HTMLElement;
|
|
2848
|
+
|
|
2849
|
+
/**
|
|
2850
|
+
* @ignore
|
|
2851
|
+
*/
|
|
2801
2852
|
searchTableWrapper: HTMLElement;
|
|
2853
|
+
|
|
2854
|
+
/**
|
|
2855
|
+
* @ignore
|
|
2856
|
+
*/
|
|
2802
2857
|
lastSearch: Array<object>;
|
|
2803
2858
|
/**
|
|
2804
|
-
*
|
|
2859
|
+
* @ignore
|
|
2805
2860
|
*/
|
|
2806
2861
|
instance: OrgChart;
|
|
2807
2862
|
/**
|
|
2808
|
-
*
|
|
2863
|
+
* @ignore
|
|
2809
2864
|
*/
|
|
2810
2865
|
searchFieldsAbbreviation: {[key: string]: string};
|
|
2811
2866
|
}
|