Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

grouping toasts in predefined areas #194

Open
andreav opened this issue Mar 17, 2021 · 0 comments
Open

grouping toasts in predefined areas #194

andreav opened this issue Mar 17, 2021 · 0 comments

Comments

@andreav
Copy link

andreav commented Mar 17, 2021

Hello,
I'm visualizing toasts in 2 areas on the page at the same time.

I tried using groups, so changing my notifications from this:

this.$toasted.show( ... )

to this:

this.$toasted.group().show( ... )

Now toast are correctly visualized in their own position, but when a new toast arrives in the same area where another is already present, the second one overlaps the first one.
Before using groups, the second toast was nicely stacked under the first.

Is there a solution to this.

It seems like I would "name"groups, i.e.

this.$toasted.group({name: 'area1'}).show( ... )
this.$toasted.group({name: 'area2'}).show( ... )

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant