![]() |
пре 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