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

[Bug] No overload method for custom heading? #191

Closed flamecrow closed 1 year ago

flamecrow commented 1 year ago

Describe the bug README says you can use toastService.ShowSuccess("I'm a SUCCESS message with a custom title", "Congratulations!")) However, there is no such overload method that takes two strings like this (breaking change from version 3.2.2). Second parameter is now looking for Action<ToastSettings>? settings = null

To Reproduce Steps to reproduce the behavior:

  1. Create project
  2. Try to pass two strings to toast for "message" and "custom header"

Expected behavior Allow passing two strings to toast to show message and custom header.

Screenshots image

Hosting Model (is this issue happening with a certain hosting model?):

chrissainty commented 1 year ago

Good spot, thanks @flamecrow. I missed that when updating the docs. I'll get a PR raised in a sec to update that call and remove the custom title.

Skyl3lazer commented 1 year ago

Is it intended that we can no longer customize the toasts like this, or is there another way to do it now? I used this feature extensively.

chrissainty commented 1 year ago

Custom headings have been removed. There is just the message now. If you want to use a heading as well as a message then you can use the custom component option.