Create a native desktop system menu with the Electron Menu module

InstructorCameron Nokes

Share this video with your friends

Send Tweet

A main menu is a hallmark of native desktop applications. Electron makes it easy to create native menus and menu items in JavaScript.

We’ll go over creating a menu template using Menu.buildFromTemplate and then setting it as the main application menu via Menu.setApplicationMenu.

James Barlow
~ 7 years ago

On Win32, with Electron 1.6.11, a default native menu is added to the app based on the example template in the docs:

https://electron.atom.io/docs/api/menu/#examples

rajeshkw
~ 7 years ago

This is some crazy new stuff that i got to learn today!! Thanks Egghead!

Elgs
~ 7 years ago

Could the process.platform be 'win64' on Windows 64bit systems?

Ady
~ 7 years ago

just to be clear it seems like you are using main.js and index.js interchangeably, is that the case?? Thank for a clear and concise course otherwise so far

Salinger MS
~ 7 years ago

I have an error 'ReferenceError : isWindows is not defined

---- never mind got, minor problem with my code