Contents

MenuItemWithRoleOptions

Options for constructing a menu item with a role.

import { MenuItemWithRoleOptions } from '@mobrowser/api';

Example 

import { app, Menu, MenuItemWithRole } from '@mobrowser/api';

const menu = new Menu({
  items: [
    new MenuItemWithRole({ role: 'quit' })
  ]
})
app.setMenu(menu)

Properties 

role 

readonly role: MenuItemRole;

The role of the menu item.