Skip to content

Commit 0cbf5db

Browse files
Comments on the dropdown options
1 parent c66df55 commit 0cbf5db

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

types/dropdown.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
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+
*/
112
export type DropdownProps = {
2-
options: any[];
13+
options: string[] | any[];
314
buttonName: string;
4-
disabled?: boolean;
515
selectedOption: (event: any) => void;
16+
disabled?: boolean;
617
itemsClasses?: string;
718
hasIconClock?: boolean;
819
onlyArray?: boolean;
920
dropdownWidth?: string;
10-
}
21+
}

0 commit comments

Comments
 (0)