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

Skip to content

v0.2.0

Compare
Choose a tag to compare
@cristijora cristijora released this 17 Sep 20:08

Minor Changes

  • Show the vue-version for this plugin...: ed8d546
  • #6 Wrap themes in .vue-notifyjs class to avoid some css conflicts: 2f743d0
  • #7 Add title option to notifications: 0af1e46
  • Add posibility to set notification options upon plugin initialization: c9e3227

Improvements/Features

  • Possibility to set notification options upon plugin initialization
import Notify from 'vue-notifyjs'
Vue.use(Notify, {type: 'primary', timeout: 2000})
  • Set notification options dynamically via setOptions
this.$notifications.setOptions({
                            type: 'primary', 
                            timeout: 2000,
                            horizontalAlign: 'right',
                            verticalAlign: 'top'
                          })
  • Add notification title prop #7
this.$notify({title: 'This line will be bold', message: 'This line will not be bold'})

Fiddle example https://jsfiddle.net/z11fe07p/2519/

  • Shorthand for notifying with a message only
    this.$notify('My message') will now default to this.$notify({message: 'My message})