Header menu logo fable-electron-docs-api

Tray Module

Types and nested modules

Type/Module Description

DisplayBalloon

SetTitle

IOnClick

Emitted when the tray icon is clicked.Note that on Linux this event is emitted when the tray icon receives an activation, which might not necessarily be left mouse click.

IOnDoubleClick

⚠ OS Compatibility: WIN ✔ | MAC ✔ | LIN ❌ | MAS ❌ Emitted when the tray icon is double clicked.

IOnDropFiles

⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ Emitted when dragged files are dropped in the tray icon.

IOnDropText

⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ Emitted when dragged text is dropped in the tray icon.

IOnMiddleClick

⚠ OS Compatibility: WIN ✔ | MAC ❌ | LIN ❌ | MAS ❌ Emitted when the tray icon is middle clicked.

IOnMouseDown

⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ Emitted when the mouse clicks the tray icon.

IOnMouseEnter

⚠ OS Compatibility: WIN ✔ | MAC ✔ | LIN ❌ | MAS ❌ Emitted when the mouse enters the tray icon.

IOnMouseLeave

⚠ OS Compatibility: WIN ✔ | MAC ✔ | LIN ❌ | MAS ❌ Emitted when the mouse exits the tray icon.

IOnMouseMove

⚠ OS Compatibility: WIN ✔ | MAC ✔ | LIN ❌ | MAS ❌ Emitted when the mouse moves in the tray icon.

IOnMouseUp

⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ Emitted when the mouse is released from clicking the tray icon.> [!NOTE] This will not be emitted if you have set a context menu for your Tray using tray.setContextMenu, as a result of macOS-level constraints.

IOnRightClick

⚠ OS Compatibility: WIN ✔ | MAC ✔ | LIN ❌ | MAS ❌ Emitted when the tray icon is right clicked.

Type something to start searching.