Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

For akioma.swat.Message.message, the following attributes are available:

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 hidden 
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

 



  • No labels