docs: Default value of positioningItem

This commit is contained in:
Cheng Zhao 2016-01-22 11:32:14 -07:00
parent 2d8e5e3a16
commit d1051b55cc

View file

@ -242,8 +242,9 @@ will become properties of the constructed menu items.
* `browserWindow` BrowserWindow (optional) - Default is `null`. * `browserWindow` BrowserWindow (optional) - Default is `null`.
* `x` Number (optional) - Default is -1. * `x` Number (optional) - Default is -1.
* `y` Number (**required** if `x` is used) - Default is -1. * `y` Number (**required** if `x` is used) - Default is -1.
* `positioningItem` Number (optional) _OS X_ - the index of the menu item to * `positioningItem` Number (optional) _OS X_ - The index of the menu item to
be positioned under the mouse cursor at the specified coordinates. be positioned under the mouse cursor at the specified coordinates. Default is
-1.
Pops up this menu as a context menu in the `browserWindow`. You can optionally Pops up this menu as a context menu in the `browserWindow`. You can optionally
provide a `x, y` coordinate to place the menu at, otherwise it will be placed provide a `x, y` coordinate to place the menu at, otherwise it will be placed