steeve:simple-bootstrap3-alerts

v0.0.6Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

simple-bootstrap3-alerts

A simple alert package for Meteor using bootstrap 3.

Dependencies

Installation

meteor add steeve:simple-bootstrap-alerts

Adding Alerts

  Alert.add(msg, type);

Types: success, info, warning, danger

msg can be text or an Error object. If Error object it will display Error.reason

Clearing Alerts

  Alert.clear()

Handlebars

 {{> alert}}

Router Usage

 before: function(){
    Alert.clear();
  }

or :

onStop: function() {
    Alerts.clear();
}
``

# License
Copyright (c) 2013 [EtherPOS](http://www.etherpos.com/ "EtherPOS, LLC"). Released under an MIT license.