]> khamidou — GitHub mirrors - electron.git/commitdiff
:memo: tray.popContextMenu API.
authorHaojian Wu <hokein.wu@gmail.com>
Thu, 16 Jul 2015 03:53:13 +0000 (11:53 +0800)
committerHaojian Wu <hokein.wu@gmail.com>
Thu, 16 Jul 2015 03:53:13 +0000 (11:53 +0800)
docs/api/tray.md

index 6d1bbb75ec6c24f8fefa70186c90983b3892c437..fe0e2542b3a3573d5b8953e4c1fa1f31e61662a9 100644 (file)
@@ -144,6 +144,15 @@ Displays a tray balloon.
 
 __Note:__ This is only implemented on Windows.
 
+### Tray.popContextMenu([position])
+
+* `position` Object - The pop position
+  * `x` Integer
+  * `y` Integer
+
+__Note:__ This is only implemented on OS X and Windows.
+The `position` is only available on Windows, and it is (0, 0) by default.
+
 ### Tray.setContextMenu(menu)
 
 * `menu` Menu