v0.3.0
Patches
- Update readme with
primary
option #10 - Add a more specific css class to the notification layer
vue-notifyjs
New options
This version introduces new options which you can pass through the $notify
method / config during plugin initialization or setOptions
method.
showClose: {
type: Boolean,
default: true
},
closeOnClick: {
type: Boolean,
default: true
},
onClick: Function,
showClose
will hide the close icon/button if set tofalse
closeOnClick
will not close the notification when clicking it if set tofalse
onClick
function which can be passed to the notify method. The method accepts anevent
parameter.
Example:
this.$notify({title: 'Hi', message: 'Some message', onClick: (evt) => {
alert('You clicked a notification')
}})