Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Handle Toast Click

$
0
0

I want to handle a click event on a toast notification. I need to handle when the user clicks on the text (header or message) to navigate the user away. I know that I can use buttons, but I am using a button for a ‘cancel’ or ‘dismiss’ as well. I don’t want to use multiple buttons on the toast, because visually, they are hard to see and aren’t very intuitive.

Is there an easy way to handle this? I had tried the onclick and the ontouchend events of the toast notification that is created from the toast controller, but that does not work on device (works on web).

Any tricks to get this to work?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>