Components

Alert Banner

14min

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.

Component Availability
Improved
CET 15.5 Major and above



Alert banner types

Utilization of these types should follow the guidelines specified in System status.

Information

Information alert banner
Information alert banner


Warning

Warning alert banner
Warning alert banner


Error

Error alert banner
Error alert banner


Usage guidelines

When to use

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.

No stacking

Only one message should be visible at a time.

Do:

Document image


Don't:

Document image


Actionable

Alert banners needs to be actionable, when possible, there should be buttons to make it easier for the user to address the issue.

Placement

Alert banners are placed in the top of the window, below the application menu.

Overflow

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.

Document image


Dismissal

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".



Specifications

Document image

  1. Severity icon
  2. Text
  3. Action button (optional)
  4. Update buttons (optional)
  5. Dismiss button

Code

To create an alert banner, create an instance of the NotifyMessage class:

CM


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.

Figma