Electron dialog tutorials

Electron dialog tutorials

In this Electron dialog tutorial we’ll take a look at using the different dialogs electron provides. With the dialog we can display native system dialogs for opening and saving files, alerting, etc.

Each dialog has its own post to make them easier to read.

Using showOpenDialog

With the showOpenDialog you can let the user select one or more files or folders. The selected paths are returned as an array of strings.

Electron showOpenDialog tutorial

Using showSaveDialog

The save dialog displays a dialog to the user and returns a path containing the path selected.

Electron showSaveDialog tutorial

using showMessageBox

showMessageBox could be used to display a question to the user, and depending of the answer do something.

Electron showMessageBox tutorial

using showErrorBox

showErrorBox is used to display an error to the user.

Electron showErrorBox tutorial