Is there a way to handle SnackbarMessage timer's duration end? #2793
-
Hello. Is it possible to handle/execute custom code when SnackbarMessage expires - that is, when user didn't click ActionButton, timer runs out and SnackbarMessage becomes inactive? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
At present there is not really anything directly built-in for this, though you could build out enough tracking for it. To get the expiration you could watch the |
Beta Was this translation helpful? Give feedback.
At present there is not really anything directly built-in for this, though you could build out enough tracking for it. To get the expiration you could watch the
Message
property on theSnackbar
itself to know when a message is being removed (though you would need to track the previous value yourself). You would then also need to track if the user clicked the action button.