DropdownCell template

This cell renders dropdown from react-select package.

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 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