Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About Timer #1

Open
merveyapnaz opened this issue Jan 23, 2020 · 0 comments
Open

About Timer #1

merveyapnaz opened this issue Jan 23, 2020 · 0 comments

Comments

@merveyapnaz
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant