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