Skip to content

Commit

Permalink
docs: Update menu-item with new position props (#14465)
Browse files Browse the repository at this point in the history
* docs: Update menu-item with new position props

* 📦 Update electron-typescript-definitions
  • Loading branch information
felixrieseberg authored and codebytere committed Sep 10, 2018
1 parent 7252692 commit f012ed8
Show file tree
Hide file tree
Showing 3 changed files with 1,875 additions and 1,865 deletions.
20 changes: 15 additions & 5 deletions docs/api/menu-item.md
Expand Up @@ -27,14 +27,24 @@ See [`Menu`](menu.md) for examples.
* `visible` Boolean (optional) - If false, the menu item will be entirely hidden.
* `checked` Boolean (optional) - Should only be specified for `checkbox` or `radio` type
menu items.
* `submenu` (MenuItemConstructorOptions[] | [Menu](menu.md)) (optional) - Should be specified for `submenu` type menu items. If
`submenu` is specified, the `type: 'submenu'` can be omitted. If the value
is not a [`Menu`](menu.md) then it will be automatically converted to one using
* `submenu` (MenuItemConstructorOptions[] | [Menu](menu.md)) (optional) - Should be specified
for `submenu` type menu items. If `submenu` is specified, the `type: 'submenu'` can be omitted.
If the value is not a [`Menu`](menu.md) then it will be automatically converted to one using
`Menu.buildFromTemplate`.
* `id` String (optional) - Unique within a single menu. If defined then it can be used
as a reference to this item by the position attribute.
* `position` String (optional) - This field allows fine-grained definition of the
specific location within a given menu.
* `before` String[] (optional) - Inserts this item before the item with the specified label. If
the referenced item doesn't exist the item will be inserted at the end of the menu. Also implies
that the menu item in question should be placed in the same “group” as the item.
* `after` String[] (optional) - Inserts this item after the item with the specified label. If the
referenced item doesn't exist the item will be inserted at the end of
the menu.
* `beforeGroupContaining` String[] (optional) - Provides a means for a single context menu to declare
the placement of their containing group before the containing group of the item
with the specified label.
* `afterGroupContaining` String[] (optional) - Provides a means for a single context menu to declare
the placement of their containing group after the containing group of the item
with the specified label.

### Roles

Expand Down

0 comments on commit f012ed8

Please sign in to comment.