Alert

Model

This is the alert model. untilRemove specifies how long until the message will be automatically removed (a value of -1 for will display it until it is removed manually). If icon is False then the alert icon will be hidden (this is only useful if you want to prevent the user from closing the alert).

type AlertType
= Info
| Success
| Warning
| Error
| Loading

The type of alert, determines which class will be attached to the alert. Loading will display a spinner instead of a close icon.

ClearAll will clear all alerts other than Loading alerts and ForceClearAll will clear all alerts including Loading alerts. To add an alert use AddAlert, to remove an alert use RemoveAlert. Do not use any of the other message types.