Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 7

...

AttributeTypeInfoDefault value
typestringAvailable values: success, question, information, warning, errorerror
titlestringThe title of the modal messageThe type of the message that is displayed
textstringThe text that will be displayed in the modal or notification message 
modalbooleanIf 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
closeOnEscbooleanIf set to false, the modal message will not be closed on pressing the Escape keytrue
closeOnClickOutsidebooleanIf set to true, the modal message will close when the user clicks outside the windowfalse
showMessageCodebooleanIf set to false, the message code received from the back-end is not displayed in brackets at the end of the text messagetrue
expireintegerIt specifies the delay (in milliseconds) until the notification is hidden10000 (10 seconds)
buttonsarray/object

You can overwrite the default buttons for each message type using an array of buttons or object list.

See Smart Messages Examples

See reference table from Smart Messages for the defaults
callbackfunction

Defines the actions to be performed upon click on message buttons.

See Smart Messages Examples

 
moretextstringShow a "More" button which will show a modal inner window with the text given 

 

For custom buttons, defined as objects, the following attributes are available:

...