Skip to content

How does Vue3 setup ts use $Notification? #287

Answered by kevytlab
kevytlab asked this question in Q&A
Discussion options

You must be logged in to vote

solved.

notificationExample(placement = 'top') {
  this.$Notification(
    {
      duration: 3000,
      placement,
    },
    h(NotificationExample), // your own component
  )() // There is no '()' in the demo
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lewebsimple
Comment options

Answer selected by quatrochan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants