Alert Banner
Alert banners are used to inform users of important system-wide events. They should be relevant to the user and as minimally disruptive as possible. In general, they should follow the guidelines specified in System status.
Utilization of these types should follow the guidelines specified in System status.
Information | Type of alert banner |
---|---|
There is an update available | Information alert banner |
The user is in an read-only state | Information alert banner |
The trial ends in X days | Information alert banner |
The trial have ended | Warning alert banner |
There is low disk space | Warning alert banner |
A background task have stopped working | Error alert banner |
Errors in the graphics | Error alert banner |
Information from manufacturers, for example webinars or price increases. | No alert banner, use notification. |
Error when user have performed an action | No alert banner, use dialog message instead. |
Only one message should be visible at a time.
Do:
Don't:
Alert banners needs to be actionable, when possible, there should be buttons to make it easier for the user to address the issue.
Alert banners are placed in the top of the window, below the application menu.
Use short sentences as possible, but when overflow is needed, for example when the user makes the windows smaller, the text should continue on a new line.
Banners are persistent by default, the user needs to perform an action, or to select to close the banner to be able to dismiss the banner. To dismiss, use the X icon to the right of the banner. Please avoid using buttons labeled "Close" or "Dismiss".
- Severity icon
- Text
- Action button (optional)
- Update buttons (optional)
- Dismiss button
To create an alert banner, create an instance of the NotifyMessage class:
The notifyType argument allows you to specify the type of alert banner.
The dataObj argument lets you pass an object that can be accessed in callbacks through NotifyButtonArgs
For the full list of constructor options, please refer to cm/win/notify/notifyMessage.cm.