-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmsfmultiselect.d.ts
40 lines (40 loc) · 1.22 KB
/
msfmultiselect.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
export interface MSFmultiSelectSettings {
width?: number;
height?: number;
className?: string;
onChange?: (
checked: boolean,
value: string,
instance: MSFmultiSelect
) => void;
selectAll?: true;
searchBox?: true;
appendTo?: string;
readOnly?: boolean;
afterSelectAll?: (
checked: boolean,
value: string,
instance: MSFmultiSelect
) => void;
autoHide?: boolean;
}
export interface MSFmultiSelectSource {
caption: string;
value: string | number;
selected?: boolean;
}
/* MSFmultiSelect v2.5
* Copyright (c) 2020 Mini Super Files | https://github.com/minisuperfiles/MSFmultiSelect/blob/master/LICENSE
* https://github.com/minisuperfiles/MSFmultiSelect
* https://minisuperfiles.blogspot.com/p/documentation.html?project=msfmultiselect
*/
export declare class MSFmultiSelect {
constructor(select: Element | string, settings?: MSFmultiSelectSettings);
setValue(selected: Array<string | number>, trigger?: boolean): void;
removeValue(selected: Array<string | number>, trigger?: boolean): void;
getData(): Array<string | number>;
selectAll(isSetValue?: boolean): void;
loadSource(data: Array<MSFmultiSelectSource>): void;
getSource(): Array<MSFmultiSelectSource>;
reload(): void;
}