@lynx-js/lynxtron / MessageBoxSyncOptions
MessageBoxSyncOptions
属性
buttons?
Array of texts for buttons. On Windows, an empty array will result in one button labeled "OK".
定义于
cancelId?
The index of the button to be used to cancel the dialog, via the Esc key. By
default this is assigned to the first button with "cancel" or "no" as the label.
If no such labeled buttons exist and this option is not set, 0 will be used as
the return value.
定义于
defaultId?
Index of the button in the buttons array which will be selected by default when the message box opens.
定义于
detail?
Extra information of the message.
定义于
icon?
定义于
message
Content of the message box.
定义于
textWidth? macOS
Custom width of the text in the message box.
定义于
title?
Title of the message box, some platforms will not show it.
定义于
type?
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.
定义于