1.0.7 • Published 5 years ago

vue-bootstrap-toasts v1.0.7

Weekly downloads
165
License
ISC
Repository
github
Last release
5 years ago

vue-bootstrap-toasts

This was bulit with bootstrap 4 "toasts" component in mind, so It depends on bootstrap 4.

Demo?

https://rakk7.github.io/vue-bootstrap-toasts/demo/

Why did I create this? there is many of Vue toasts plugins out there?

I created this because I am already working with bootstrap 4, and I needed Vue to make toasts component more dynamic. Other plugins add too much complex I don't need.

How to install?

npm install vue-bootstrap-toasts

How to use it?

1- Import..

import VueBootstrapToasts from "vue-bootstrap-toasts";
Vue.use(VueBootstrapToasts);

2 - Add the component in your html, somewhere at the top..

<Toasts></Toasts>

Or if u want to override default values

<Toasts
	:rtl="true"
	:max-messages="7"
	:time-out="5000" // 5 secs
	:closeable="false"
></Toasts>

3 - Call these methods where ever you want inside vue..

this.$toast.success('your message');
this.$toast.error('your message');
this.$toast.warning('your message');
this.$toast.info('your message');

Or Pass an options per toast

this.$toast.success("your message", {
	rtl: true,
	timeOut: 0, // infinity
	closeable: false
});

Thats it.

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago