vue-notify-me
Stackable notification Alert for Vue.js.
Features
- Customizable template
- Stackable notifications
Installation
Properties
Properties | Type | Values |
---|---|---|
event-bus |
Object | Central event Bus |
event-show (not required) |
String | Default notify-me |
event-hide (not required) |
String | Default hide-notify-me |
close (not required) |
String | Default bulma , options: bootstrap or any other class for the closing icon |
permanent (not required) |
Bool | Default false |
container (not required) |
String | Default notification , (Class for the notification container) |
status (not required) |
String | Default is-success , (Class for the notification status) |
width (not required) |
String | Default 350px . It's mandatory to set the unit for the width. For example: rem , em , px |
timeout (not required) |
Number | Default 4000 . Value is in miliseconds. If notification is not permanent you can set the timeout for it |
Examples
Include the component in your .vue file.
If you'd like to use the component in a SPA set a single template on your layout application
and fire your notification through your central event bus.
Set any available prop for the component like this:
To show a notification just fire an event like this:
You may also add any available prop through the event emitter: