Documentation
On this page

Interface · Desktop Services

TrayIconOptions

Options used to create or update a native tray icon.

@sharpts/gui · SharpTS 572a2e31be0e

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

src/SharpTS.Gui.Sdk/GuiPackage/runtime.ts:1101 at SharpTS revision 572a2e31be0e2a09be0138bc44501b34d6245b51.