Skip to content

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

Notifications You must be signed in to change notification settings

datariot/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 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!');

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •