Thanks to visit codestin.com
Credit goes to github.com

Skip to content

v0.3.0

Compare
Choose a tag to compare
@cristijora cristijora released this 28 Nov 17:17

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 to false
  • closeOnClick will not close the notification when clicking it if set to false
  • onClick function which can be passed to the notify method. The method accepts an event parameter.
    Example:
this.$notify({title: 'Hi', message: 'Some message', onClick: (evt) => {
                     alert('You clicked a notification')
                }})