notification-toast
An app-toast (paper-toast) wrapper for simulating web notifications.
[ This description is mirrored from README.md at github.com/jifalops/notification-toast on 2019-05-22 ]
notification-toast
An app-toast (paper-toast) wrapper for simulating web notifications.
Installation
bower i -S notification-toast # Polymer 2.0 hybrid (1.x compatible)
bower i -S notification-toast#^0.1 # Polymer 1.x based
Usage
- Drop
notification-toast
in and call theshow()
method.
Demo
<notification-toast id="toast"></notification-toast>
<input id="title" placeholder="title" value="Title"/><br/>
<input id="body" placeholder="body" value="body"/><br/>
<input id="icon" placeholder="icon" value="demo/monkey.jpg"/><br/>
<button onclick="show()">Show</button>
<button onclick="toast.close()">Close</button><br/>
Last Event: <span id="feedback"></span>
Full demo: webcomponents.org | github.
API: webcomponents.org
Contributing
- Fork it on Github.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
License
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Dependencies
Polymer/polymer#^1.4.0
- paper-toast#^1.3.0
- iron-icon#^1.0.12
- app-toast#^0.2.2
- Released
- 2017-03-27
- Maturity
- IMPORTED
- License
- Other
Compatibility
- Framework
- Polymer 1.0+
- Polymer 2.0+ in 0.2.0
- Browser
- Browser Independent