v0.3.0
Patches
- Update readme with
primaryoption #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,showClosewill hide the close icon/button if set tofalsecloseOnClickwill not close the notification when clicking it if set tofalseonClickfunction which can be passed to the notify method. The method accepts aneventparameter.
Example:
this.$notify({title: 'Hi', message: 'Some message', onClick: (evt) => {
alert('You clicked a notification')
}})