![]() |
il y a 5 ans | |
---|---|---|
dist | il y a 5 ans | |
example | il y a 5 ans | |
src | il y a 5 ans | |
.babelrc | il y a 5 ans | |
.gitignore | il y a 5 ans | |
.npmignore | il y a 5 ans | |
LICENCE.md | il y a 5 ans | |
README.md | il y a 5 ans | |
package-lock.json | il y a 5 ans | |
package.json | il y a 5 ans | |
webpack.config.js | il y a 5 ans |
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