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

SmartMessages are messages which are coming from the back-end and handled on the UI (on the front-end). These messages are displayed in 2 ways: modals (on top of page content, user action is required) and notifications (non-modal messages displayed on the top right corner of the screen, with a timeout before being hidden).

Standard types of messages and default values

TypeColorDefault displayDefault buttons (when modal)
successgreennotificationOK
questionbluemodalYes / No
informationbluenotificationOK
warningorangenotificationOK / Cancel
errorrednotificationOK

These 5 types of messages are the standard types of messages in the SWAT framework and we encourage to use only them (or combinations between them), as these ones are being maintained and enhanced.

Note

The default type for messages, if it's not defined, it's Error.

 

Variations of messages (alternatives to the standard ones)

Warning

The variations of the messages from the table below are not maintained and will become obsolete in the future.

TypeColorDefault displayDefault buttons (when modal)
confirmbluemodalConfirm / Cancel
alertredmodalOK
alert-informationbluemodalConfirm
alert-warningorangemodalConfirm / Cancel
alert-errorredmodalOK
alert-questionbluemodalConfirm / Cancel
confirm-informationbluemodalConfirm
confirm-warningorangemodalConfirm / Cancel
confirm-errorredmodalOK
confirm-questionbluemodalConfirm / Cancel
  • No labels