Skip to content

DropdownOptions

Defined in: ui/widgets/dropdown.ts:23

T

optional buttonStates?: object

Defined in: ui/widgets/dropdown.ts:34

Visual state overrides for the main button.

optional hover?: Color

optional normal?: Color

optional pressed?: Color


optional disabled?: boolean

Defined in: ui/widgets/dropdown.ts:43

Start disabled.


events: EntityEventQueue

Defined in: ui/widgets/dropdown.ts:25


optional focusable?: boolean

Defined in: ui/widgets/dropdown.ts:45

Participate in Tab traversal + arrow-key selection. Default true.


optional node?: UINodeInit

Defined in: ui/widgets/dropdown.ts:27


optional onSelect?: (index, option, entity) => void

Defined in: ui/widgets/dropdown.ts:48

number

T

number

void


optional optionHeight?: number

Defined in: ui/widgets/dropdown.ts:40

Height of each option row in pixels. Default 32.


options: readonly T[]

Defined in: ui/widgets/dropdown.ts:29


optional optionToLabel?: (option, index) => string

Defined in: ui/widgets/dropdown.ts:31

T

number

string


optional parent?: number

Defined in: ui/widgets/dropdown.ts:26


optional selectedIndex?: number

Defined in: ui/widgets/dropdown.ts:30


optional tabIndex?: number

Defined in: ui/widgets/dropdown.ts:46


world: World

Defined in: ui/widgets/dropdown.ts:24