Merge pull request #4029 from leethomas/show-message-box-default-button

Show message box default button
This commit is contained in:
Cheng Zhao 2016-01-11 20:58:03 +08:00
commit edcd34d4ce
7 changed files with 60 additions and 22 deletions

View file

@ -87,6 +87,8 @@ will be passed via `callback(filename)`
`"warning"`. On Windows, "question" displays the same icon as "info", unless
you set an icon using the "icon" option.
* `buttons` Array - Array of texts for buttons.
* `defaultId` Integer - Index of the button in the buttons array which will
be selected by default when the message box opens.
* `title` String - Title of the message box, some platforms will not show it.
* `message` String - Content of the message box.
* `detail` String - Extra information of the message.