Blazored / Toast

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

Can you set the ToastSettings in an object and pass to toastService? #258

Open MSIH opened 3 months ago

MSIH commented 3 months ago

This does not work

var message = "This is a message sent from the C# method."; var toastSettings = new ToastSettings { Position = Blazored.Toast.Configuration.ToastPosition.TopCenter };

toastService.ShowInfo(message, toastSettings);

But this does?

toastService.ShowInfo(message, settings => { settings.Position = Blazored.Toast.Configuration.ToastPosition.TopCenter; });