File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * Optionset for kern dropdown
3
+ * @options {string[] | any[]} - Can be any array of strings or objects
4
+ * @buttonCaption {string} - The name of the button
5
+ * @selectedOption {function} - The function that will be called when an option is selected
6
+ * @disabled {DropdownOptionsProps} - If the dropdown is disabled
7
+ * @itemsClasses {string} - The classes that will be applied to the dropdown items
8
+ * @hasIconClock {boolean} - If the dropdown has a clock icon
9
+ * @onlyArray {boolean} - If the dropdown has only an array of strings
10
+ * @dropdownWidth {string} - The width of the dropdown
11
+ */
1
12
export type DropdownProps = {
2
- options : any [ ] ;
13
+ options : string [ ] | any [ ] ;
3
14
buttonName : string ;
4
- disabled ?: boolean ;
5
15
selectedOption : ( event : any ) => void ;
16
+ disabled ?: boolean ;
6
17
itemsClasses ?: string ;
7
18
hasIconClock ?: boolean ;
8
19
onlyArray ?: boolean ;
9
20
dropdownWidth ?: string ;
10
- }
21
+ }
You can’t perform that action at this time.
0 commit comments