From: Joao Moreno Date: Wed, 26 Nov 2014 14:15:55 +0000 (+0100) Subject: Update documentation for Menu.popup() X-Git-Tag: v0.19.5~6^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=c6a16161d91ffd77e65ff4764e685f7f06dcf7dd;p=electron.git Update documentation for Menu.popup() --- diff --git a/docs/api/menu.md b/docs/api/menu.md index ceb00a3e..464b98f5 100644 --- a/docs/api/menu.md +++ b/docs/api/menu.md @@ -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)