Documentation
On this page

Interface · Desktop Services

TrayIconOptions

Options used to create or update a native tray icon.

@sharpts/gui 0.0.0-local · SharpTS 7c6010104a43

Members

icon

icon: string

Application asset path for the tray icon image.

Type: string

menu

menu?: readonly TrayMenuItem[]

Native context-menu entries.

Type: readonly TrayMenuItem[]

onClick

onClick?(): void

Called when the tray icon itself is activated.

onMenuItemClick

onMenuItemClick?(id: string): void

Called with an item identifier when a tray menu entry is activated.

toolTip

toolTip?: string

Hover text displayed by the desktop shell.

Type: string

Source

SharpTS.Gui.Sdk/GuiPackage/runtime.ts:1079 at SharpTS revision 7c6010104a43c34d80e9d44704cf179bc4f5b8e0.