Skip to content

MenuItem beta ​

Interface of @v12-engine/client/kit

ts
export interface MenuItem

One line of a menu: its words and what choosing it does

Members ​

checked ​

ts
checked?: boolean;

A line that is on or off, or the one picked of several: a tick before it while it is, room for one while it is not

danger ​

ts
danger?: boolean;

Whether the line is a risky one, drawn in the danger colour

disabled ​

ts
disabled?: boolean;

Whether the line is shown but cannot be chosen

hint ​

ts
hint?: string;

More of what it does: a tooltip beside it as the pointer rests on it

key ​

ts
key?: string;

A key it is also on, shown with it

label ​

ts
label: string;

The words of the line

run ​

ts
run?: () => void;

Does what the line does when it is chosen; nothing when left out

separator ​

ts
separator?: boolean;

A line before it