|
@@ -245,6 +245,7 @@ The corresponding methods are: `MessageBox`, `MessageBox.alert`, `MessageBox.con
|
|
| title | title of the MessageBox | string | — | — |
|
|
| title | title of the MessageBox | string | — | — |
|
|
| message | content of the MessageBox | string | — | — |
|
|
| message | content of the MessageBox | string | — | — |
|
|
| type | message type, used for icon display | string | success/info/<br>warning/error | — |
|
|
| type | message type, used for icon display | string | success/info/<br>warning/error | — |
|
|
|
|
+| callback | MessageBox closing callback if you don't prefer Promise | function(action), where action can be 'confirm' or 'cancel' | — | — |
|
|
| lockScroll | whether to lock body scroll when MessageBox prompts | boolean | — | true |
|
|
| lockScroll | whether to lock body scroll when MessageBox prompts | boolean | — | true |
|
|
| showCancelButton | whether to show a cancel button | boolean | — | false (true when called with confirm and prompt) |
|
|
| showCancelButton | whether to show a cancel button | boolean | — | false (true when called with confirm and prompt) |
|
|
| showConfirmButton | whether to show a confirm button | boolean | — | true |
|
|
| showConfirmButton | whether to show a confirm button | boolean | — | true |
|