-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
sweetalert2 cancelable timer problem #1321
Comments
Hi @teodorsandu, sweetalert2 doesn't expose any API to cancel the timer. If you want to implement a cancellable timer, it's simpler if you create one yourself in the |
Hey @teodorsandu and thanks for the effort you've put into your question and codepen! Will #1322 help with your use-case? |
Hi @gverni, I'm not that good as javascript to do this :D - anyway @khrismuc gave me a solution in stackoverflow via jsfiddle which I explain in a new codepen in the code's comments. Basically is not setting Hi @limonte - great library by the way and thanks! - yes, a (should I close this issue?..) |
🎉 This issue has been resolved in version 7.30.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Live demo of |
This is awesome 💗 !! Thank you @limonte !! 🙏 .resumeTimer() - resume timer from where it was when .stopTimer() was called |
🎉 This issue has been resolved in version 7.31.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@teodorsandu all requested methods were added, here's the live demo: https://shrouded-request.glitch.me/ |
That is simply perfect. Thank you! :) 🙏 |
Hi, I posted the question in https://stackoverflow.com/questions/53622723/sweetalert2-cancel-timer-timeout,
also created a pen:
https://codepen.io/teoui/pen/MzdzWy
Thank you.
The text was updated successfully, but these errors were encountered: