Document menu.closePopup

This commit is contained in:
Kevin Sawicki 2017-02-16 11:18:13 -08:00
parent ce5ac1b056
commit 6c6506e5aa

View file

@ -54,8 +54,7 @@ The `menu` object has the following instance methods:
#### `menu.popup([browserWindow, options])`
* `browserWindow` BrowserWindow (optional) - Default is
`BrowserWindow.getFocusedWindow()`.
* `browserWindow` BrowserWindow (optional) - Default is the focused window.
* `options` Object (optional)
* `x` Number (optional) - Default is the current mouse cursor position.
* `y` Number (**required** if `x` is used) - Default is the current mouse
@ -69,6 +68,12 @@ The `menu` object has the following instance methods:
Pops up this menu as a context menu in the `browserWindow`.
#### `menu.closePopup([browserWindow])`
* `browserWindow` BrowserWindow (optional) - Default is the focused window.
Closes the context menu in the `browserWindow`.
#### `menu.append(menuItem)`
* `menuItem` MenuItem