MessageBoxSyncOptions
Properties
Array of texts for buttons. On Windows, an empty array will result in one button labeled "OK".
On Windows Electron will try to figure out which one of the buttons
are common buttons (like "Cancel" or "Yes"), and show the others as command links in the dialog. This can make the dialog appear in the style of modern Windows apps. If you don't like this behavior, you can set noLink
to true
.
Normalize the keyboard access keys across platforms. Default is false
. Enabling this assumes &
is used in the button labels for the placement of the keyboard shortcut access key and labels will be converted so they work correctly on each platform, &
characters are removed on macOS, converted to _
on Linux, and left untouched on Windows. For example, a button label of Vie&w
will be converted to Vie_w
on Linux and View
on macOS and can be selected via Alt-W
on Windows and Linux.
Can be none
, info
, error
, question
or warning
. On Windows, question
displays the same icon as info
, unless you set an icon using the icon
option. On macOS, both warning
and error
display the same warning icon.