|
|
6 years ago | |
|---|---|---|
| dist | 6 years ago | |
| example | 6 years ago | |
| src | 6 years ago | |
| .babelrc | 6 years ago | |
| .gitignore | 6 years ago | |
| .npmignore | 6 years ago | |
| LICENCE.md | 6 years ago | |
| README.md | 6 years ago | |
| package-lock.json | 6 years ago | |
| package.json | 6 years ago | |
| webpack.config.js | 6 years ago |
Toast alerts (initially developed for Vue.js with a material-design style)
npm install -S --production vue-roaster
<template>
<toast></toast>
</template>
<script>
import { Toast } from 'vue-roaster';
export default {
ready() {
Toast.methods.addToast("An Example Toast", 5000);
},
components: { Toast }
}
</script>
# install dependencies
npm install
# serve example with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build