An implementation of paper-toast designed to work well in NodeCG dashboard panels. Requires Polymer 2.
NodeCG dashboard panels are iframes. Showing toasts inside these iframes
isn't always the best way of notifying a user. nodecg-toast
reaches outside
of the iframe and places a paper-toast
in the top document. nodecg-toast
then acts as a proxy to this top-level paper-toast
. The result is that the
dashboard panel can interact with nodecg-toast
just as it would any other paper-toast
,
but the toast gets shown on the dashboard itself, instead of just within the
iframe of the current panel.
From your bundle's root directory:
bower install --save NodeCGElements/nodecg-toast
<nodecg-toast text="Look at me!"></nodecg-toast>
For more detailed documentation, refer to paper-toast.
- Fork it!
- 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
Based entirely on paper-toast by the Polymer Project.
nodecg-toast is provided under the MIT license, which is available to read in the LICENSE file.