No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Q-notify programmatically close the notification

    Help
    2
    3
    1552
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hpawar last edited by

      Hello,

      I want to turn off a notification programmatically. As per api docs “Notifications are meant to be dismissed only by the user, however for exceptional cases you can do it programmatically. Especially useful when you set indefinite timeout (0).”

      and then this example is given:-
      const dismiss = this.$q.notify({…})
      …
      dismiss()

      Can someone explain how to make it work?

      Thanks
      HP

      1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman last edited by

        it dismisses notication that’s assigned to your variable, if you don’t do that then your screen will be filled by same notifications. sample https://codepen.io/metalsadman/pen/KjNJrQ?editors=1011

        1 Reply Last reply Reply Quote 0
        • H
          hpawar last edited by

          Thanks, @metalsadman got you…

          1 Reply Last reply Reply Quote 0
          • First post
            Last post