@dlophin/vue-toast
v1.1.1
Published
a vue plugin
Downloads
11
Readme
vue-toast
A Vue.js project
Build Setup
# install dependencies
npm install -D @dlophin/vue-toast
# import
import vueToast from '@dlophin/vue-toast'
Vue.use(vueToast)
# use
this.$showToast({
content: 'this is a toast' //
duration: 3000 // stop time
success: ()=>{} // transfer success function
end: ()=>{} // the toast remove function
})
# also choice postion
this.$showToast.top();
this.$showToast.center();
this.$showToast.bottom();
For detailed explanation on how things work, consult the docs for vue-loader.