Toast icon indicating copy to clipboard operation
Toast copied to clipboard

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

Open MSIH opened this issue 1 month ago • 0 comments

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; });

MSIH avatar Jun 08 '24 11:06 MSIH