#613·toastr

How to add a countdown timer as content

Author: badbyt3Created May 2, 2019Updated May 21, 2023

I'm trying to add a count down of 5 minutes to the toastr. Now, I'm able to add the 300 seconds. The current solution that I was able to reach is that I generate a bunch of toastr intances lined up under each other. But how to I create only one toastr that shows my count down?

This is the configuration of my toatr: toastr.options = { "closeButton": false, "debug": false, "newestOnTop": true, "progressBar": false, "positionClass": "toast-top-right", "preventDuplicates": true, "onclick": null, "showDuration": "1", "hideDuration": "0", "timeOut": "1", "extendedTimeOut": "0", "timeOut": "0", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut", "opacity":"1" }