Blazored / Toast

A JavaScript free toast library for Blazor and Razor Component applications
https://blazored.github.io/Toast/
MIT License
663 stars 92 forks source link

Custom default toast titles #120

Closed vandyckth closed 3 years ago

vandyckth commented 3 years ago

At this moment, every toast type has its own default title that can be overridden when calling the IToastService. Works great, but I would love to be able to change the default title of each toast type (like we can set a custom icon for each type also), in the MainLayout.razor-file. Something like 'DefaultSuccessTitle'.

chrissainty commented 3 years ago

Hi @vandyckth, this seems like a good idea. I'd be happy to take a PR for it. This would just follow the same pattern as the other global options.

vandyckth commented 3 years ago

@chrissainty Thanks a lot! Looking forward to the implementation. :)

chrissainty commented 3 years ago

We've now introduced the ability to have custom components displayed. This will allow you to display any details you wish.