v0.2.0
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 tothis.$notify({message: 'My message})