]> khamidou — GitHub mirrors - electron.git/commitdiff
docs: Document the new Tray APIs.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 9 Sep 2014 11:50:50 +0000 (19:50 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 9 Sep 2014 11:50:50 +0000 (19:50 +0800)
docs/api/tray.md

index c72963e26c3293ca5b66a40cfbc3040c5e83f543..7d6ebc96713a509d39d5c77b574e8e1fe9658d29 100644 (file)
@@ -48,6 +48,12 @@ Creates a new tray icon associated with the `image`.
 
 Emitted when the tray icon is clicked.
 
+### Event: 'double-clicked'
+
+Emitted when the tray icon is double clicked.
+
+This is only implmented on OS X.
+
 ### Tray.setImage(image)
 
 * `image` [Image](image.md)
@@ -64,8 +70,28 @@ Sets the `image` associated with this tray icon when pressed.
 
 * `toolTip` String
 
+Sets the hover text for this tray icon.
+
+### Tray.setTitle(title)
+
+* `title` String
+
+Sets the title displayed aside of the tray icon in the status bar.
+
+This is only implmented on OS X.
+
+### Tray.setHighlightMode(highlight)
+
+* `highlight` String
+
+Sets whether the tray icon is highlighted when it is clicked.
+
+This is only implmented on OS X.
+
 ### Tray.setContextMenu(menu)
 
 * `menu` Menu
 
+Set the context menu for this icon.
+
 [event-emitter]: http://nodejs.org/api/events.html#events_class_events_eventemitter