Snackbar - NOTIFICATIONS INSPIRED BY GOOGLE MATERIAL DESIGN 1

Snackbar – NOTIFICATIONS INSPIRED BY GOOGLE MATERIAL DESIGN

Snackbar.show({pos: 'bottom-left'}); //Set the position
                
              

Here is what the above code is Doing:
1. We are creating a new variable called ‘snackbar’ and setting it equal to a new Snackbar object.
2. We are setting the text of the snackbar to ‘Hello World’.
3. We are setting the duration of the snackbar to 4000 milliseconds.
4. We are setting the position of the snackbar to ‘bottom-left’.
5. We are calling the show() method on the snackbar object.

Similar Posts