Interface SelectProps<T>

Type Parameters

  • T

Hierarchy

  • SelectProps

Properties

getLabel: ((item: T) => string)

Type declaration

    • (item: T): string
    • Function to access the option label

      Parameters

      • item: T

      Returns string

getValue: ((item: T) => string)

Type declaration

    • (item: T): string
    • Function to access the option value

      Parameters

      • item: T

      Returns string

label: string

Label for the selection menu

onSelectOption: ((value: string) => void)

Type declaration

    • (value: string): void
    • Handler to call when the user selects an option

      Parameters

      • value: string

      Returns void

options: T[]

List of dropdown options

selectedOption: T

Selected option

Generated using TypeDoc