Skip to content

Documentation / @debuffjp/ui / MenuOptions

Interface: MenuOptions<A> ​

Defined in: menu.ts:26

Type Parameters ​

A ​

A extends string = string

Properties ​

actions? ​

optional actions?: MenuActions<A>

Defined in: menu.ts:28

Input action names. Default { up: "up", down: "down", confirm: "confirm" }.


onBack? ​

optional onBack?: () => void

Defined in: menu.ts:29

Returns ​

void


wrap? ​

optional wrap?: boolean

Defined in: menu.ts:31

Wrap from the last item to the first. Default true.