Skip to content

A package for sending flash messages to users using Foundation styling.

Notifications You must be signed in to change notification settings

tlau/foundation-flash-messages

 
 

Repository files navigation

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)[http://foundation.zurb.com/docs/components/alert-boxes.html] to support the alert boxes. You can do this by including them manually or by using (meteor-foundation)[https://atmosphere.meteor.com/package/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!');

About

A package for sending flash messages to users using Foundation styling.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.6%
  • HTML 8.4%