Chapter 7. Building application and context menus

This chapter covers

  • Creating menus using Electron’s Menu and MenuItem modules
  • Building menus from a template
  • Defining custom menus for target operating systems
  • Assigning common operating system roles to our menu items
  • Making menu items with custom, application-specific functionality
  • Creating custom context menus for different parts of your UI

In browser-based applications, developers have access only to the visible area of the application’s window. They can’t add controls to the browser’s tool bar or menu bar. The entire UI for the application’s functionality must be inside of the window. Developers also face limitations within the window. They can’t modify the context menus that appear when ...

Get Electron in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.