Toastr: How to prevent fade out with sticky toast on mouseover?
Set extendedTimeOut
to 0 too. That will keep it sticky.
timeOut
and extendedTimeOut
must be set to 0
.
Here is a complete example:
toastr.options = {
timeOut: 0,
extendedTimeOut: 0
};
toastr.info("Testing <button>blah</button>");
For those who wish to not close the toast on click, the example changes to:
toastr.options = {
timeOut: 0,
extendedTimeOut: 0,
tapToDismiss: false
};
toastr.info("Testing <button>blah</button>");