Define a type for tray menu registration

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
This commit is contained in:
Juho Heikka committed 2021-12-30 11:45:07 +02:00
1 parent d407b27f7f
commit bb4790e3d8
5 files changed
+35 -10

No files matched your search

+1 -1
View File
@@ -97,7 +97,7 @@ This page would be defined in your extension's `Renderer.LensExtension` implemen
### `trayMenus`
`trayMenus` is an array of Electron's [`MenuItemConstructorOptions`](https://www.electronjs.org/docs/v14-x-y/api/menu-item). Most importantly you can define a `label` and a `click` handler.
`trayMenus` is a subset of Electron's [`MenuItemConstructorOptions`](https://www.electronjs.org/docs/v14-x-y/api/menu-item). Most importantly you can define a `label` and a `click` handler. Other properties are `submenu`, `enabled`, `visible`, `toolTip`, `id` and `type`.
The following example demonstrates how tray menus can be added from extension: