-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathselectrix.d.ts
45 lines (42 loc) · 1.13 KB
/
selectrix.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
declare module "react-selectrix" {
class Selectrix extends React.Component<SelectrixProps> {}
interface SelectrixProps {
ajax?: boolean | object;
arrow?: boolean;
checkBoxes?: boolean;
className?: string;
commaSeperated?: boolean;
customKeys?: boolean | SelectrixOption | SelectrixOption[];
customScrollbar?: boolean;
defaultValue?: boolean | string | SelectrixOption[];
disabled?: boolean;
height?: number;
id?: string;
initialized?: boolean;
isDropDown?: boolean;
isOpen?: boolean;
lifo?: boolean;
materialize?: boolean;
multiple?: boolean;
onChange?: Function;
onClose?: Function;
onOpen?: Function;
onRenderOption?: boolean | Function;
onRenderSelection?: boolean | Function;
options?: SelectrixOption[];
placeHolderInside?: boolean;
placeholder?: string;
searchable?: boolean;
selectAllButton?: boolean;
singleLine?: boolean;
stayOpen?: boolean;
tags?: boolean;
updateInstance?: Function;
}
interface SelectrixOption {
key: string;
label: string;
disabled?: boolean;
}
export default Selectrix;
}