Directory

isw-snackbar - Vaadin Add-on Directory

Material Design Polymer 2.0 Snackbar / Toast, stacking context safe with remote-control. isw-snackbar - Vaadin Add-on Directory
**[ This description is mirrored from README.md at [github.com/IswPolymerElements/isw-snackbar](https://github.com//IswPolymerElements/isw-snackbar/blob/1.0.4/README.md) on 2019-05-10 ]** # \ Material Design Polymer 2.0 Snackbar / Toast, stacking context safe with remote-control. Place your snackbar somewhere save from stacking-context issues, and access it over a remote element in your view. An open call to an allready opened snackbar closes and opens it again, multiple calls are queued. Only one snackbar is needed, e.g. placed in the app. ```html ``` It can be accessed from multiple remotes. ```html ``` ```javascript openFirstSnackbar() { this.$.firstSnackbar.open(); } openSecondSnackbar() { this.$.secondSnackbar.open(); } ``` The element uses the `isw-responsive-behavior`, so its appearance can be controlled by setting the device attribute... ```html ``` ```html ``` ... or get responsive by combining with `isw-responsive` ```html ```