![]() |
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 5 años | |
.npmignore | hace 5 años | |
LICENCE.md | hace 6 años | |
README.md | hace 5 años | |
package-lock.json | hace 5 años | |
package.json | hace 5 años | |
webpack.config.js | hace 5 años |
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
# watch files for changes wtih webpack
npm run dev
# build for production with minification
npm run build