Hi all,
Just passing through quickly to see if anyone has tried to build Snackbars or Toasts in Ionic and to see if there is any support to include them as an ionic component (just like action sheets, modals, popups). It’s a way to show quick notifications that tend not to be actionable (if there is a button, it’s usually an optional ‘undo’ or ‘retry’ button, where the notification was to, say, delete a photo or send a message respectively), and will fade away after seconds and can be ignored. A popup or modal won’t do, it’s too much in the center of attention. For example, after a user logs in you’ll want to show ‘Hi username, you are now logged in’. Same for logout.
Google’s Material Design has an excellent page on what these could look like. Ionic’s version could look different of course but the same idea would apply. If you’re unfamiliar with the snackbar/toast terminology (like I was!) then please check it out!
http://www.google.com/design/spec/components/snackbars-toasts.html
I guess the toasts are sort of possible with something like this at the bottom:
But it’s not particularly configurable with messages, a button etc. The snackbars are a little bit similar to the buttons in an Action Sheet, or even a single-button popover positioned properly. It’d be nice if they too got their own component and could be configured with text, a button, color and proper positioning.
Really hoping someone’s got this working. It seems like such a common feature we could all use!
Thanks