Toast: How to find out when a user has closed Toast #3177
Answered
by
LeandroMarcondes
DKPlugins
asked this question in
PrimeReact
-
How can I find out when the user closed the Toast, and when it automatically disappeared after the time expired? |
Beta Was this translation helpful? Give feedback.
Answered by
LeandroMarcondes
Dec 20, 2024
Replies: 1 comment
-
You can use the callback onRemove to monitor when Toad is hide in general. Then use the pt > closeButton, to add an onClick event so you can monitor when the user actively clicked on the button. Here is a sample:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
melloware
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the callback onRemove to monitor when Toad is hide in general. Then use the pt > closeButton, to add an onClick event so you can monitor when the user actively clicked on the button. Here is a sample:
Sample