The Electron framework provides support for saving, opening, confirmation, and many more. These dialogs are native to each platform. We are going to use the macOS platform to see the native save dialog that macOS users are familiar with. The same code running on Windows machines triggers Windows-like dialogs.
Let's start by importing a dialog object into the menu.js file from the Electron framework:
const { app, Menu, shell, ipcMain, BrowserWindow, globalShortcut, dialog} = require('electron');
You can now use the showSaveDialog method, which requires a parent window object reference and a set of options before it can customize the behavior of the dialog.
In our case, we are going to set the title of the dialog and ...