November 2019
Beginner
436 pages
8h 52m
English
In this section, we are going to provide support for the application menu. For the sake of simplicity, let's integrate the Open and Save features for now and extend the menu as we introduce new features to the application:
const { Menu, BrowserWindow, dialog } = require('electron');const fs = require('fs');module.exports = Menu.buildFromTemplate([ { label: 'File', submenu: [ { label: 'Open', accelerator: 'CommandOrControl+O', click() { loadFile(); } }, { label: 'Save', accelerator: 'CommandOrControl+S', ...Read now
Unlock full access