🐳 awesome vue2 simple toast
- Can be singleton
- Programmable
Changed from AStaroverov/vue-toast
npm i -S awesome-vue-toast
import Toast from 'awesome-vue-toast'
...
Toast.showToast('Enjoy toast!')
<body>
...
<script src="./awesome-vue-toast/build/js/toast.js"></script>
<script>
...
Toast.showToast('Enjoy toast!')
...
</script>
...
</body>
Toast.addMessage({
text: 'This is success type',
type: 'success',
dismissAfter: 3 * 1000
})
option | type | default | other value |
---|---|---|---|
text |
String |
||
type |
String |
info | success, warning, danger |
dismissAfter |
Int |
5 * 1000 | milliseconds |
npm run dev # development
npm run build # build
props | default | other value | description |
---|---|---|---|
position |
se | n, s, nw, ne, sw, se | north, south, north west, ... |