Document menu.closePopup
This commit is contained in:
parent
ce5ac1b056
commit
6c6506e5aa
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue