Globals / "Menubar" / Menubar /
-
EventEmitter
- Menubar
+ new Menubar(app
: App
, options?
: Partial<Options>
): Menubar
Defined in Menubar.ts:24
Parameters:
Name | Type |
---|---|
app |
App |
options? |
Partial<Options> |
Returns: Menubar
• app:
Defined in Menubar.ts:47
• positioner:
Defined in Menubar.ts:56
• tray:
Defined in Menubar.ts:69
• window:
Defined in Menubar.ts:83
▸ getOption<K>(key
: K
): Options[K]
Defined in Menubar.ts:92
Type parameters:
▪ K: keyof Options
Parameters:
Name | Type | Description |
---|---|---|
key |
K |
The option key to retrieve, see Options. |
Returns: Options[K]
▸ hideWindow(): void
Defined in Menubar.ts:99
Returns: void
▸ setOption<K>(key
: K
, value
: Options[K]
): void
Defined in Menubar.ts:115
Type parameters:
▪ K: keyof Options
Parameters:
Name | Type | Description |
---|---|---|
key |
K |
The option key to modify, see Options. |
value |
Options[K] |
The value to set. |
Returns: void
▸ showWindow(trayPos?
: Electron.Rectangle
): Promise<void>
Defined in Menubar.ts:124
Parameters:
Name | Type | Description |
---|---|---|
trayPos? |
Electron.Rectangle |
The bounds to show the window in. |
Returns: Promise<void>