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

    How to close one or all notifications in v0.15?

    Framework
    4
    7
    2034
    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.
    • W
      wux last edited by

      Is there a way to close one or all notifications programmatically? I have a notification popup on a page but want to hide it when navigating away. Currently it stays there even I navigate to another page which is irrelevant to the notification. I want to hide it when navigating away, or is there a different component I can use for this? Thanks.

      1 Reply Last reply Reply Quote 0
      • E
        emartinezpinzon last edited by emartinezpinzon

        Hello @wux, if it’s about alerts you can call the dismiss() method as recommended by the documentation.

        One option is to give a time to each alert on the screen and then disappear, another is that somewhere in your code call the dismiss() method.

        I asked a similar question a few days ago, maybe it can help you with something.

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

          Hi @wux

          Here is a fiddle showing how to keep a reference of your notification, so you can close them.

          @emartinezpinzon note @emartinezpinzon said v0.15, which does not longer have an alert component.

          Cheers!

          1 Reply Last reply Reply Quote 0
          • E
            emartinezpinzon last edited by

            Sorry, I thought it was the same version that I’m using (v0.14.7). Now, I have the doubt, where can I see the documentation of v0.15? I only see references to v0.13.

            Sorry to invade this question with my doubt, only that I consider it to end. If it is necessary to delete it and that I create a new topic I am willing to do it.

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

              There are no docs for 0.15 yet, and it is still in beta. Due out this month 🙂

              1 Reply Last reply Reply Quote 0
              • W
                wux last edited by

                nice, thanks for the help!

                1 Reply Last reply Reply Quote 0
                • M
                  mohanzeal last edited by

                  https://codepen.io/mohanzeal/pen/MRMzXz , this code will help you to dismiss all the notification and show only current notification at a single point of time.

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