...
Attribute | Type | Info | Default value |
---|---|---|---|
type | string | Available values: success, question, information, warning, error | error |
title | string | The title of the modal message | The type of the message that is displayed |
text | string | The text that will be displayed in the modal or notification message | |
modal | boolean | If true, the message will be displayed as modal, if false, the message will be displayed as notification (non-modal) | Based on the type of the message. See reference table from Smart Messages |
closeOnEsc | boolean | If set to false, the modal message will not be closed on pressing the Escape key | true |
closeOnClickOutside | boolean | If set to true, the modal message will close when the user clicks outside the window | false |
showMessageCode | boolean | If set to false, the message code received from the back-end is not displayed in brackets at the end of the text message | true |
expire | integer | It specifies the delay (in milliseconds) until the notification is hidden | 10000 (10 seconds) |
buttons | array/object | You can overwrite the default buttons for each message type using an array of buttons or object list. | See reference table from Smart Messages for the defaults |
callback | function | Defines the actions to be performed upon click on message buttons. |
...
For custom buttons, defined as objects, the following attributes are available:
Attribute | Type | Info | |
---|---|---|---|
text | |||
string | the label text of the button | ||
value | string | the value returned in the callback when pressing the button | |
visible | boolean | if the button should be displayed or not |