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

possible to allow global options to be overriden (case in point: newestOnTop) #818

Closed
michahell opened this issue May 28, 2020 · 2 comments
Labels

Comments

@michahell
Copy link

michahell commented May 28, 2020

Hi, I have a use case where we actually use ngx-toastr for 2 use cases:

  1. General application warnings / errors / etc.
  2. A specific use case, for a download notification system. It is for this system that we want to override the global newestOnTop property.

I can not change the global forRoot() config because of use-case 1) where we want to keep newestOnTop as it is (default is on top).

I can also not create a ToastrModule.forChild() where we override this, because this does not seem to be supported.

Is there way to achieve separate newestOnTop behaviour for my 2 use cases, or if not,
is this behaviour that could be something to be supported in the long run?

@scttcper
Copy link
Owner

🎉 This issue has been resolved in version 12.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@michahell
Copy link
Author

Many thanks! 🎉

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

No branches or pull requests

2 participants