Merge pull request #10618 from electron/add-menuitembyid

[WIP] add getMenuItemById to Menu API
This commit is contained in:
Shelley Vohr 2017-09-26 22:33:05 -04:00 committed by GitHub
commit 15b0878a17
3 changed files with 41 additions and 0 deletions

View file

@ -89,6 +89,12 @@ Closes the context menu in the `browserWindow`.
Appends the `menuItem` to the menu.
#### `menu.getMenuItemById(id)`
* `id` String
Returns `MenuItem` the item with the specified `id`
#### `menu.insert(pos, menuItem)`
* `pos` Integer