Custom elements in MenuItem


#1

Hey guys,
I’m working on a simple menu bar utility in Electron and ran into a need for adding custom elements to menu items.

I’m talking about some elements that could be added to the right side of each MenuItem, similarly as it’s done in macOS Wi-Fi menu.

The problem is I only found icon covered in docs and that adds icon to the left.

Is this even possible in Electron? Thanks.


#2

That’s not possible with the built-in menu API, if you want a custom menu you’ll have to build it yourself with HTML/CSS/JS and display it in a separate BrowserWindow.


#3

Why the heck separate browser window?