Skip to content

Documentation / @debuffjp/ui / MenuItem

Interface: MenuItem ​

Defined in: menu.ts:4

Properties ​

change? ​

optional change?: (dir) => void

Defined in: menu.ts:12

Left/right on this row (with left/right actions) call this with -1 or 1.

Parameters ​

dir ​

-1 | 1

Returns ​

void


disabled? ​

optional disabled?: boolean

Defined in: menu.ts:8

Skipped by navigation and drawn dimmed.


label ​

label: string

Defined in: menu.ts:5


onSelect? ​

optional onSelect?: () => void

Defined in: menu.ts:6

Returns ​

void


value? ​

optional value?: () => string

Defined in: menu.ts:10

Shown in a right-hand column, e.g. a volume or "on"/"off". Read every draw.

Returns ​

string