-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnodecg-toast.html
29 lines (22 loc) · 1001 Bytes
/
nodecg-toast.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<link rel="import" href="../polymer/polymer-element.html">
<link rel="import" href="../polymer/lib/utils/flattened-nodes-observer.html">
<link rel="import" href="../polymer/lib/utils/import-href.html">
<!--
`nodecg-toast` is a remote wrapper to a [`paper-toast`](https://elements.polymer-project.org/elements/paper-toast) element present on the Dashboard.
Each `nodecg-toast` element creates its own `paper-toast`.
<nodecg-toast text="This text will show up on the bottom left of the dashboard!"></nodecg-toast>
Because every NodeCG panel is an iframe, we cannot attach a `paper-toast` element directly to the panel. Instead,
we must traverse up past the iframe boundary and attach it directly to the dashboard's `body` tag. `nodecg-toast`
takes care of this for you and makes it transparent.
-->
<dom-module id="nodecg-toast">
<template>
<style>
:host {
display: none;
}
</style>
<slot id="slot"></slot>
</template>
<script src="nodecg-toast.js"></script>
</dom-module>