How to close/clear previous Toast?
-
Scenario: I execute Negative Toast with timeout of 10 sec every time user submission fails(error response). But I want to clear it and any queued Toast so that I can show a Positive Toast immediately on success submission.
Regards
-
Any updates on this? Can we easily dismiss a toast programatically?
-
Nope… but this might help http://quasar-framework.org/components/alert.html
-
I’ve got the same use case.
Alert won’t work because it doesn’t timeout. -
You can dismiss the alert programatically and set a timeout using
setTimeout
Quasar will have new components called notify and alert in v0.15, due out this month. These will give you more options