Class: MenuItem

MenuItem

Name Type Description
options object
Name Type Description
label string optional

label for menu entry may include accelerator by placing & before letter)

type string optional

separator, checkbox, or undefined

styles object optional

additional CSS styles to apply to this MenuItem

accelerator string optional

see Accelerator for inputs (e.g., ctrl+shift+A)

submenu MenuItem optional

attaches a submenu (and changes type to submenu)

checked boolean optional

check the checkbox

Type Definitions

ClickCallback (e)

The click callback

Name Type Description
e InputEvent