Open MSIH opened 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; });
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; });