mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Document menu.closePopup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user