This cell renders dropdown from react-select
package.
💡
DropdownCell
interface can be changed in the future
Implementation
- Open
DropdownCell
implementation on github
Interface declaration
type OptionType = {
label: string
value: string
}
interface DropdownCell extends Cell {
type: "dropdown"
selectedValue?: string
values: OptionType[]
isDisabled?: boolean
isOpen?: boolean
inputValue?: string
}
Property name | Type | Property description |
---|---|---|
type | dropdown | Type of cell template |
selectedValue | ?string | Currently selected option |
values? | OptionType[] | An array of options |
isDisabled? | ?boolean | Disables dropdown from opening |
isOpen? | ?boolean | Controls current state of open/close |
inputValue? | ?string | A value typed into a dropdown filter |