Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Toastr / Notifications: Different locations at the same time

fumarmata pro asked 3 years ago


Hello!

I want to show Notifications in different positions of the screen at the same time. Is that possible?I know I can use this to override the global settings

toastr.info("xx", "", {"positionClass":"md-toast-bottom-left"})

But if I do this:

toastr.info("xx", "", {"positionClass":"md-toast-bottom-left"})  // LEFT
toastr.info("xx", "", {"positionClass":"md-toast-bottom-right"})  // RIGHT

Both notifications will be shown at the left. If I wait for the leftmost to disappear before launching the right one, then the right one will be placed in the correct position.

Expected behavior

One notification at the left, another at the right

Actual behavior

Both notifications at the left


Marcin Luczak staff answered 3 years ago


Hi,

Those are global options for every notification visible in the view, so as you mentioned you can only wait for one notification to hide before new options can be applied.

Keep coding, Marcin from MDB



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: MDB4 4.19.2
  • Device: All
  • Browser: All
  • OS: All
  • Provided sample code: No
  • Provided link: No