You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Feature Request
I believe the toast component should have an 'action' option, that fires when the toast is tapped, either on the displayed message text or a separate button that can be shown in addition to the close button.
Describe Preferred Solution
Described above. This is necessary when using the toast component for displaying things like notifications, that then need an option to show more detail.
Describe Alternatives
I've not been able to find anything.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
…am#17147)
Adds a `header` and `buttons` property to toast. This allows for a toast header to be passed and multiple buttons including action buttons and icon only buttons which matches the Material Design spec. Adds hover states to the button to match the spec. Updates usage section to recommend the new way of passing a close button using the buttons array and `cancel` role. If a button is passed using the cancel role default the color to match the spec. Buttons will default to the `end` side but have the option of being placed on the `start` side.
Co-authored-by: Simon Hänisch <simonhaenisch@users.noreply.github.com>
Co-authored-by: Brandy Carney <brandy@ionic.io>
closesionic-team#16791closesionic-team#16237closesionic-team#17611
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Feature Request
Ionic version:
[x] 4.x
Describe the Feature Request
I believe the toast component should have an 'action' option, that fires when the toast is tapped, either on the displayed message text or a separate button that can be shown in addition to the close button.
Describe Preferred Solution
Described above. This is necessary when using the toast component for displaying things like notifications, that then need an option to show more detail.
Describe Alternatives
I've not been able to find anything.
Related Code
I've already started implementing this here: https://github.com/dangerdan/ionic/tree/toast-added-action-button
The text was updated successfully, but these errors were encountered: