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

    Close Toast before navigating to other routes

    Help
    2
    2
    620
    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.
    • E
      eugenemaning last edited by

      Hi everyone, is there a way in manually (forcefully) closing Toast components when you’ve already navigated away from the page that showed or created the Toast component?

      I’d like that Toast message to be hidden automatically when I’ve navigated away from that page.

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

        Alert.create() return an object with a dismiss method, so you can do this:

        myAlert = Alert.create('warning!')
        myAlert.dismiss()
        

        I’m not sure if the same can be done with toast

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