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