Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
JerseyTechGuy opened this issue May 11, 2022 · 2 comments · Fixed by #208
Closed

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

JerseyTechGuy opened this issue May 11, 2022 · 2 comments · Fixed by #208
Labels
Feature New feature that will be added to the project

Comments

@JerseyTechGuy
Copy link

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

@JerseyTechGuy JerseyTechGuy added Feature Request Request to add a new feature Triage Issue needs to be triaged labels May 11, 2022
@Cvijo
Copy link
Contributor

Cvijo commented Feb 16, 2023

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.

Blazored.Toast.Server.-.Google.Chrome.2023-02-16.22-46-36.mp4

@chrissainty
Copy link
Member

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

@chrissainty chrissainty added Feature New feature that will be added to the project and removed Feature Request Request to add a new feature Triage Issue needs to be triaged labels Feb 16, 2023
@chrissainty chrissainty changed the title [Feature Request] Change position of toast when showing toast [Feature] Change position of toast when showing toast Feb 16, 2023
chrissainty added a commit that referenced this issue Feb 23, 2023
* added ability to use toast position on each toast instance instead of single global position

* - passing additinal css classes to toast (#207)

* Pause on hover feature #148 (#203)

---------

Co-authored-by: Matija Gluhak <matija.gluhak@vipdata.hr>
Co-authored-by: Chris Sainty <chrissainty@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Feature New feature that will be added to the project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants