commit
76375a83eb
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Tray
|
# Tray
|
||||||
|
|
||||||
用一个 `Tray` 来表示一个图标,这个图标处于正在运行的系统的通知区 ,通常被添加到一个 context menu 上.
|
> 通过 `Tray` 向系统的通知区添加一个带有右键菜单的图标.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
const electron = require('electron')
|
const electron = require('electron')
|
||||||
|
@ -202,4 +202,4 @@ Emitted when a drag operation exits the tray icon.
|
||||||
|
|
||||||
为这个 icon 设置 context menu .
|
为这个 icon 设置 context menu .
|
||||||
|
|
||||||
[event-emitter]: http://nodejs.org/api/events.html#events_class_events_eventemitter
|
[event-emitter]: http://nodejs.org/api/events.html#events_class_events_eventemitter
|
||||||
|
|
Loading…
Add table
Reference in a new issue