docs: Document dialog.showErrorBox, fixes #909
This commit is contained in:
parent
31bdfc2281
commit
7abb08cc25
1 changed files with 7 additions and 0 deletions
|
@ -83,3 +83,10 @@ the index of the clicked button.
|
|||
|
||||
If a `callback` is passed, the API call would be asynchronous and the result
|
||||
would be passed via `callback(response)`
|
||||
|
||||
## dialog.showErrorBox(title, content)
|
||||
|
||||
Runs a modal dialog that shows an error message.
|
||||
|
||||
This API can be called safely before the `ready` event of `app` module emits, it
|
||||
is usually used to report errors in early stage of startup.
|
||||
|
|
Loading…
Add table
Reference in a new issue