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