]> khamidou — GitHub mirrors - electron.git/commitdiff
Update documentation for Menu.popup()
authorJoao Moreno <mail@joaomoreno.com>
Wed, 26 Nov 2014 14:15:55 +0000 (15:15 +0100)
committerJoao Moreno <mail@joaomoreno.com>
Wed, 26 Nov 2014 14:15:55 +0000 (15:15 +0100)
docs/api/menu.md

index ceb00a3ed8c3481e41d643f0f8df6f3faae8bac4..464b98f520dd8ad1450bda27301cedcba68e39d0 100644 (file)
@@ -191,11 +191,15 @@ Generally, the `template` is just an array of `options` for constructing
 You can also attach other fields to element of the `template`, and they will
 become properties of the constructed menu items.
 
-### Menu.popup(browserWindow)
+### Menu.popup(browserWindow, [x, y])
 
 * `browserWindow` BrowserWindow
+* `x` Number
+* `y` Number
 
-Popups the this as context menu in the `browserWindow`.
+Popups 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
+at the current mouse cursor position.
 
 ### Menu.append(menuItem)