:memo: add defaultButtonIndex to dialog docs
authorleethomas <leet944@gmail.com>
Fri, 8 Jan 2016 06:10:34 +0000 (22:10 -0800)
committerleethomas <leet944@gmail.com>
Fri, 8 Jan 2016 16:22:11 +0000 (08:22 -0800)
docs/api/dialog.md

index 80a5289..ecab70a 100644 (file)
@@ -87,6 +87,7 @@ 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.
+  * `defaultButtonIndex` 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.