Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

FormioAlerts Provider

Randall Knutson edited this page Jul 27, 2016 · 3 revisions

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

Clone this wiki locally