4.0
Cell templates
DropdownCell

This cell renders dropdown from react-select (opens in a new tab) package.

Note: Visibility of the dropdown is controlled by the isOpen prop.

Implementation

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 nameTypeProperty description
typedropdownType of cell template
selectedValue?stringCurrently selected option
values?OptionType[]An array of options
isDisabled??booleanDisables dropdown from opening
isOpen??booleanControls current state of open/close
inputValue??stringA value typed into a dropdown filter