Skip to content

About Timer #1

Description

@merveyapnaz

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions