|
|
пре 4 година | |
|---|---|---|
| dist | пре 5 година | |
| example | пре 6 година | |
| src | пре 5 година | |
| .babelrc | пре 6 година | |
| .gitignore | пре 6 година | |
| .npmignore | пре 6 година | |
| LICENCE.md | пре 5 година | |
| README.md | пре 5 година | |
| package-lock.json | пре 4 година | |
| package.json | пре 5 година | |
| webpack.config.js | пре 6 година |
Toast alerts (initially developed for Vue.js with a material-design style)
npm install --save --production toasters
HTML:
<div id="toasts-container" class="position-right position-bottom">
<div id="toasts-content">
<!-- toasts will be added or removed from here -->
</div>
</div>
JS:
import Toast from "toasters";
new Toast({
content: "Hello World",
persistant: true
});
Preview:
# install dependencies
npm install
# watch files for changes with webpack
npm run dev
# build for production with minification
npm run build