|
@@ -380,6 +380,7 @@ The corresponding methods are: `MessageBox`, `MessageBox.alert`, `MessageBox.con
|
|
| type | message type, used for icon display | string | success / info / warning / error | — |
|
|
| type | message type, used for icon display | string | success / info / warning / error | — |
|
|
| customClass | custom class name for MessageBox | string | — | — |
|
|
| customClass | custom class name for MessageBox | string | — | — |
|
|
| callback | MessageBox closing callback if you don't prefer Promise | function(action), where action can be 'confirm' or 'cancel', and `instance` is the MessageBox instance. You can access to that instance's attributes and methods | — | — |
|
|
| callback | MessageBox closing callback if you don't prefer Promise | function(action), where action can be 'confirm' or 'cancel', and `instance` is the MessageBox instance. You can access to that instance's attributes and methods | — | — |
|
|
|
|
+| showClose | whether to show close icon of MessageBox | boolean | — | true |
|
|
| beforeClose | callback before MessageBox closes, and it will prevent MessageBox from closing | function(action, instance, done), where `action` can be 'confirm' or 'cancel'; `instance` is the MessageBox instance, and you can access to that instance's attributes and methods; `done` is for closing the instance | — | — |
|
|
| beforeClose | callback before MessageBox closes, and it will prevent MessageBox from closing | function(action, instance, done), where `action` can be 'confirm' or 'cancel'; `instance` is the MessageBox instance, and you can access to that instance's attributes and methods; `done` is for closing the instance | — | — |
|
|
| 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) |
|
|
@@ -399,4 +400,4 @@ The corresponding methods are: `MessageBox`, `MessageBox.alert`, `MessageBox.con
|
|
| inputValidator | validation function for the input. Should returns a boolean or string. If a string is returned, it will be assigned to inputErrorMessage | function | — | — |
|
|
| inputValidator | validation function for the input. Should returns a boolean or string. If a string is returned, it will be assigned to inputErrorMessage | function | — | — |
|
|
| inputErrorMessage | error message when validation fails | string | — | Illegal input |
|
|
| inputErrorMessage | error message when validation fails | string | — | Illegal input |
|
|
| center | whether to align the content in center | boolean | — | false |
|
|
| center | whether to align the content in center | boolean | — | false |
|
|
-| roundButton | whether to use round button | boolean | — | false |
|
|
|
|
|
|
+| roundButton | whether to use round button | boolean | — | false |
|