Skip to main content
The return value of menubar() is a Menubar class instance, which exposes the following properties and methods. Menubar is also an event emitter; see Events.
The menubar(options?: Partial<Options>) factory creates a Menubar using Electron’s app. See Options for every option.

Properties

Electron.App
The Electron App instance.
BrowserWindow | undefined
Tray
The Electron Tray instance.
Positioner
The Positioner instance used to compute the window’s on-screen coordinates.

Methods

On macOS, show the window with showWindow() rather than window.show() or window.showInactive(), so it rejoins all workspaces when showOnAllWorkspaces is enabled.

Example