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).
Type | Color | Default display | Default buttons (when modal) |
---|---|---|---|
success | green | notification | OK |
question | blue | modal | Yes / No |
information | blue | notification | OK |
warning | orange | notification | OK / Cancel |
error | red | notification | OK |
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.
The default type for messages, if it's not defined, it's Error. |
The variations of the messages from the table below are not maintained and will become obsolete in the future. |
Type | Color | Default display | Default buttons (when modal) |
---|---|---|---|
confirm | blue | modal | Confirm / Cancel |
alert | red | modal | OK |
alert-information | blue | modal | Confirm |
alert-warning | orange | modal | Confirm / Cancel |
alert-error | red | modal | OK |
alert-question | blue | modal | Confirm / Cancel |
confirm-information | blue | modal | Confirm |
confirm-warning | orange | modal | Confirm / Cancel |
confirm-error | red | modal | OK |
confirm-question | blue | modal | Confirm / Cancel |