![]() |
5 سال پیش | |
---|---|---|
dist | 5 سال پیش | |
example | 5 سال پیش | |
src | 5 سال پیش | |
.babelrc | 5 سال پیش | |
.gitignore | 5 سال پیش | |
.npmignore | 5 سال پیش | |
LICENCE.md | 5 سال پیش | |
README.md | 5 سال پیش | |
package-lock.json | 5 سال پیش | |
package.json | 5 سال پیش | |
webpack.config.js | 5 سال پیش |
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