Skip to content

Latest commit

 

History

History
executable file
·
31 lines (27 loc) · 1.04 KB

README.md

File metadata and controls

executable file
·
31 lines (27 loc) · 1.04 KB

foundation-flash-messages

A small package for displaying Foundation style flash messages. This is based on https://github.com/andreavaghi/meteor-flash-messages. Welcoming any pull requests that add thoughtfully to the package.

##Requirements You need to include the Foundation JS and CSS to support the alert boxes. You can do this by including them manually or by using meteor-foundation.

##Usage Install the package:

   mrt add foundation-flash-messages

Include the template somewhere in your index.html file:

  {{> meteorMessages}}

And then send messages:

  Messages.send(STYLE,MESSAGE);

And to clear messages:

  Messages.clear();

For example:

  Messages.send('alert', 'There was a problem signing you in.');
  Messages.send('info', 'We will be shutting down in 10 minutes.');
  Messages.send('success', 'Your account has been updated!');