FormioAlerts Provider - formio/ngFormioHelper GitHub Wiki

Keeps track of all alerts that are made within your application. You can add this to your page by adding the following in a template or view...

<uib-alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.message}}</uib-alert>

You can then add new alerts by doing the following within a controller.

FormioAlerts.addAlert({
  type: 'danger',
  message: 'Your session has expired. Please log in again.'
});

You can use Bootstrap's alert types to format the message. You can view them at Alert Types

⚠️ **GitHub.com Fallback** ⚠️