Replies: 2 comments 1 reply
-
Agree. For custom toasts it'd be useful in general to have an option to close it. if you could add |
Beta Was this translation helpful? Give feedback.
1 reply
-
Any news on this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a controller that causes a number of toasts to be generated showing error messages. We want, when the user corrects the input field and the toast is still showing, that the individual toast is closed.
We think the only way we can do this is to pass the ToastInstance, and then it is a doddle to call ToastInstance.Close().
However, ToastInstance is declared as an internal class, and therefore cannot be used for any meaningful access.
Alternatively, if we could access the ToastContainer, we could also find the ToastInstance, and clear the correct individual toast. Or perhaps there be a way to discover the ToastInstance GUID, and send a command to toastService to close the toast with that GUID.
Is there any way we can acheive this?
We would rather not have to pull our own copy of the repo, modifying the code, and rebuilding.
All help appreciated.
Richard
Beta Was this translation helpful? Give feedback.
All reactions