Is there a way to have two buttons on a toast and a handler assigned to each? For example I want to ask the user a question and have two buttons yes/no, depending on which one is clicked… something different would happen.
Like an Alert? https://ionicframework.com/docs/components/#alert-confirm
Basically what I’m trying to do is ask if users are enjoying my app…
If they click Yes, show the rating dialog.
If they click No, show a feedback dialog.
the way it presents itself though should be in the form of a Toast, slides up from the bottom with text “Are you enjoying the app?” and a yes and no button.
Clone the code of a toast conponent and adjust
Toast out of the box only has one button
A component which add an
Please, provide a “X” button to close the alert :'D
How can I clone the component?
You take the code
Amend it to have two buttons