notification-toast

An app-toast (paper-toast) wrapper for simulating web notifications.


Keywords
app, notification, toast, message
License
MIT
Install
bower install notification-toast

Documentation

Published on webcomponents.org

notification-toast

An app-toast (paper-toast) wrapper for simulating web notifications.

Installation

bower install --save notification-toast

Usage

  • Drop notification-toast in and call the show() 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>&nbsp;
<button onclick="toast.close()">Close</button><br/>
Last Event: <span id="feedback"></span>

Full demo: webcomponents.org | github.

API: webcomponents.org | github.

Contributing

  1. Fork it on Github.
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

License

MIT