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

 

 

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

AttributeTypeInfo
textstringthe label text of the button
valuestringthe value returned in the callback when pressing the button
visiblebooleanif the button should be displayed or not
  • No labels