![]() |
před 6 roky | |
---|---|---|
dist | před 6 roky | |
example | před 6 roky | |
src | před 6 roky | |
.babelrc | před 6 roky | |
.gitignore | před 6 roky | |
.npmignore | před 6 roky | |
LICENCE.md | před 6 roky | |
README.md | před 6 roky | |
package-lock.json | před 6 roky | |
package.json | před 6 roky | |
webpack.config.js | před 6 roky |
Toast alerts (initially developed for Vue.js with a material-design style)
npm install -S --production toasters
<template>
<toast></toast>
</template>
<script>
import { Toast } from 'toasters';
export default {
ready() {
new Toast({ content: "This is a test for content", persistant: true, position: {
horizontal: "right",
vertical: "bottom"
}});
}
}
</script>
# install dependencies
npm install
# serve example with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build