mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Define a type for tray menu registration
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
This commit is contained in:
1 parent
d407b27f7f
commit
bb4790e3d8
5 files changed
+35
-10
No files matched your search
@@ -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:
|
||||
|
||||
|
||||
Reference in new issue
Block a user