Skip to content

Instantly share code, notes, and snippets.

@manuelgeek
Created August 4, 2019 14:32
Show Gist options
  • Save manuelgeek/47dc79f2d4f6f8a2db5e1685de078c6e to your computer and use it in GitHub Desktop.
Save manuelgeek/47dc79f2d4f6f8a2db5e1685de078c6e to your computer and use it in GitHub Desktop.
a simple snippet
import Vue from 'vue'
import BootstrapVue from 'bootstrap-vue'
Vue.use(BootstrapVue)
export function toaster(msg = 'Message', title='Success',position='b-toaster-top-right', append = false){
return this.$bvToast.toast( msg, {
title: title,
toaster: position,
variant: 'success',
solid: true,
appendToast: append
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment