vue-notifikation
Vue.js notification plugin.
Installation
Library can be installed via downloading a git repo:
An npm
package also available:
Getting started
To start using vue-notifikation
, you need to do two things. First, write some html:
You can use any id
, or even class
. This is not necessary, but if you won't do this, plugin will have to go to the DOM and create this html for you. Second thing to do is plugin installation:
Usage
Using vue-notifikation
is pretty straight forward. Just call one of API methods provided.
API
There are 4 methods for calling notifications and one for dismiss them.
show
Generic method. Can create notifications of any level (error, success or info);
error
As it's name says, error
method creates error level notifications.
success
This method creates notifications for any good news.
info
Use info
method whenever you need some regular notification.
dismiss
To close notifikation bubble call dismiss
method. Method accepts single parameter – notifikationId. This parameter is optional, and if omitted, all notifications will be dismissed.