Event onclick or ontap on Toast?

The only event I can find for interact with the Toast is a using the ‘showCloseButton’ but I’d like just to make the toast tappable.

Is that going to be implemented on ionic 2 final?

1 Like

Hi,

I don’t know if they are working on changing the Toast Message, but you can change the toast button action.

Thank you that was really usefull indeed. The documentation need to be improved.

Hey, I came across this issue once and I utilised jQuery to circumvent this. You can attach a custom class using the ‘cssClass’ property and attach an event listener to it. For example in my case I did something like this:

$('.my-custom-toast').on('click', () => { // do something; }