forked from rob-balfre/svelte-select
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
58 lines (55 loc) · 1.58 KB
/
index.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import type { SvelteComponent } from "svelte";
export interface SelectProps {
container?: HTMLElement;
input?: HTMLInputElement;
Item?: any;
Selection?: any;
MultiSelection?: any;
isMulti?: boolean;
isDisabled?: boolean;
isCreatable?: boolean;
isFocused?: boolean;
selectedValue?: any;
filterText?: string;
placeholder?: string;
items?: any[];
itemFilter?: (label: string, filterText: string, option: any) => boolean;
groupBy?: (item: any) => any;
groupFilter?: (groups: any) => any;
isGroupHeaderSelectable?: boolean;
getGroupHeaderLabel?: (option: any) => string;
getOptionLabel?: (option: any, filterText: string) => string;
optionIdentifier?: string;
loadOptions?: (filterText: string) => Promise<any[]>;
hasError?: boolean;
containerStyles?: string;
getSelectionLabel?: (option: any) => string;
createGroupHeaderItem?: (groupValue: any) => any;
createItem?: (filterText: string) => any;
isSearchable?: boolean;
inputStyles?: string;
isClearable?: boolean;
isWaiting?: boolean;
listPlacement?: "auto" | "top" | "bottom";
listOpen?: boolean;
list?: any;
isVirtualList?: boolean;
loadOptionsInterval?: number;
noOptionsMessage?: string;
hideEmptyState?: boolean;
filteredItems?: any[];
inputAttributes?: object;
listAutoWidth?: boolean;
itemHeight?: number;
Icon?: any;
iconProps?: object;
showChevron?: boolean;
showIndicator?: boolean;
containerClasses?: string;
indicatorSvg?: string;
handleClear?: () => void;
}
declare class Select extends SvelteComponent {
$$prop_def: SelectProps;
}
export default Select;