ElectronMenu.setApplicationMenu method
ElectronMenu › setApplicationMenu
Unofficial
Setsmenu as the application menu on macOS. On Windows and Linux, the menu will be set as each window's top menu.Passing
null will suppress the default menu. On Windows and Linux, this has the additional effect of removing the menu bar from the window. Signature:
setApplicationMenu(menu: ElectronMenu | null): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| menu | ElectronMenu | null | The menu to set, or null to suppress the default menu. |
Returns: void