Inspired by Android's very own Snackbar widget, SnackJS is an attempt to provide a minimal feedback notification in case of a web operation through a concise message and/or a single action response displayed at the bottom of the screen. For more information visit Google's Material Design - Snackbar & Toasts.
1. Clone the repository
2. Install using npm
3. Install using bower
In your HTML file
A template declaration would be as follows
For example,
Or maybe, a chain call
Return | Method | Description |
---|---|---|
Snack | make(message, option) |
Creates a snackbar with message and options provided. |
Snack | settings(option) |
Pass your options to settings to change them any time. |
Snack | message(message) |
Update the Snack's message. |
void | show() |
Display the Snack. |
void | hide() |
Hide the Snack. |