vue-awesome-notifications icon indicating copy to clipboard operation
vue-awesome-notifications copied to clipboard

Vue 3 version?

Open amchconsult opened this issue 2 years ago • 2 comments

do you plan to do a vue 3 version? thank you

amchconsult avatar Apr 25 '22 17:04 amchconsult

You can just use

npm i awesome-notifications

@import 'awesome-notifications/dist/style.css'
import AWN from 'awesome-notifications'

const app = createApp(App)
app.config.globalProperties.$awn = new AWN({
  position: 'top-right',
  minDurations: { 'async-block': 100 },
  durations: { global: 2000, alert: 4000 },
})

cjonstrup avatar Jul 14 '22 10:07 cjonstrup

And then how to invoque from components?

tried this this.$awn.success('Your custom message') but get undefined

dcruz1990 avatar Nov 12 '22 23:11 dcruz1990