DialogDropdown

interface DialogDropdown<V extends string | number = string | number> { type: 'dropdown' label: string value: V options: readonly DialogOption<V>[] }

A list of choices

Type Parameters

  • V extends string | number = string | number

Properties

type: 'dropdown'

Always "dropdown"

label: string

Text in front of the control

value: V

Initial choice, must be the value of one option

options: readonly DialogOption<V>[]

The choices, at least one