mirror of
https://github.com/electron/electron.git
synced 2026-02-02 11:15:33 -05:00
Merge pull request #9657 from electron/menu-docs-patch
Typescript menu popup fix
This commit is contained in:
@@ -64,8 +64,9 @@ The `menu` object has the following instance methods:
|
||||
* `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
|
||||
cursor position.
|
||||
Must be declared if `y` is declared.
|
||||
* `y` Number (optional) - Default is the current mouse cursor position.
|
||||
Must be declared if `x` is declared.
|
||||
* `async` Boolean (optional) - Set to `true` to have this method return
|
||||
immediately called, `false` to return after the menu has been selected
|
||||
or closed. Defaults to `false`.
|
||||
|
||||
Reference in New Issue
Block a user