docs: cancelId
This commit is contained in:
parent
df4b5f4ede
commit
7d456d3556
1 changed files with 5 additions and 0 deletions
|
@ -76,6 +76,11 @@ will be passed via `callback(filename)`
|
||||||
* `message` String - Content of the message box
|
* `message` String - Content of the message box
|
||||||
* `detail` String - Extra information of the message
|
* `detail` String - Extra information of the message
|
||||||
* `icon` [NativeImage](native-image.md)
|
* `icon` [NativeImage](native-image.md)
|
||||||
|
* `cancelId` Integer - The value will be returned when user cancels the dialog
|
||||||
|
instead of clicking the buttons of the dialog. By default it is the index
|
||||||
|
of the buttons that have "cancel" or "no" as label, or 0 if there is no such
|
||||||
|
buttons. On OS X the index of "Cancel" button will always be used as
|
||||||
|
`cancelId`, not matter whether it is already specified.
|
||||||
* `callback` Function
|
* `callback` Function
|
||||||
|
|
||||||
Shows a message box, it will block until the message box is closed. It returns
|
Shows a message box, it will block until the message box is closed. It returns
|
||||||
|
|
Loading…
Reference in a new issue