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

[Feature] Change position of toast when showing toast #159

Closed JerseyTechGuy closed 1 year ago

JerseyTechGuy commented 2 years ago

Would love to see the ability to change the position of the toast when showing it. I know there are times I would like to move it from the lower right to top center to be more prominent.

Perhaps something as simple as this. Otherwise it uses the default set on the BlazoredToasts component Position property

void ShowToast(ToastLevel level, string message, string heading = "", ToastPosition position);

Cvijo commented 1 year ago

I manage to get this working can make PR if @chrissainty is ok with it

When passing settings for each toast you can pass an optional parameter ToastPostion, if it is not set, the position will be from global settings.

https://user-images.githubusercontent.com/506853/219494982-107fba7b-5e70-4033-bb5e-d85009a40e3c.mp4

chrissainty commented 1 year ago

@Cvijo Yes, more than happy for a PR on this one.