Topic: How to set Toast Message

twoeyes priority asked 3 years ago

Expected behavior I'd like to set / change the Toast Message text dynamic by passing the text to the instance or so ...

Actual behavior I can not find a js method like it exists in the MDB4 version:

toastr.success('Have fun storming the castle!', 'Miracle Max Says')

Resources (screenshots, code snippets etc.)

Dawid Wajszczuk staff answered 3 years ago


You can try the solution provided by one of our users It basically should bring back this missing functionality from MDB4.

The other solution would be to render Toasts via JS. Here is the snippet with basic example Just modify it to fit your needs.

Keep coding,

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.8.1
  • Device: --
  • Browser: --
  • OS: --
  • Provided sample code: No
  • Provided link: No