README
tutorial-toast
An on screen minimal tutorial.
<tutorial-toast>
<p>This is a tutorial for the page. Take a hint.</p>
</tutorial-toast>
API components
This components is a part of API components ecosystem
Usage
Installation
npm install --save @advanced-rest-client/tutorial-toast
In an html file
<html>
<head>
<script type="module">
import '@advanced-rest-client/tutorial-toast/tutorial-toast.js';
</script>
</head>
<body>
<tutorial-toast></tutorial-toast>
</body>
</html>
In a Polymer 3 element
import {PolymerElement, html} from '@polymer/polymer';
import '@advanced-rest-client/tutorial-toast/tutorial-toast.js';
class SampleElement extends PolymerElement {
static get template() {
return html`
<tutorial-toast></tutorial-toast>
`;
}
}
customElements.define('sample-element', SampleElement);
Installation
git clone https://github.com/advanced-rest-client/tutorial-toast
cd tutorial-toast
npm install
npm install -g polymer-cli
Running the demo locally
polymer serve --npm
open http://127.0.0.1:<port>/demo/
Running the tests
polymer test --npm