vue-simple-alert icon indicating copy to clipboard operation
vue-simple-alert copied to clipboard

About Timer

Open merveyapnaz opened this issue 5 years ago • 0 comments

When I try to use SweetAlertOptions timer and timerProgressBar, timer is working but timerProgressBar is not working. I take

Unknown parameter "timerProgressBar"

warning.

And when I try to add addEventListener to toastr I can't use Swal.stopTimer and Swal.resumeTimer functions of sweetalert2 . What can I use instead of them?

Thats the example

this.$fire({ title: "Toastr Title", text: "Toastr Text", toast: true, background: "#ed4d44", showConfirmButton: false, position: "bottom-end", customClass: { content: "custom", title: "custom" }, timer: 3000, timerProgressBar: true, //Not working onOpen: toast => { toast.addEventListener("mouseenter", Swal.stopTimer); // toast.addEventListener("mouseleave", Swal.resumeTimer); // } }).then(r => { console.log(r.value); });

Thank you.

merveyapnaz avatar Jan 23 '20 10:01 merveyapnaz