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

How To Use toast.addEventListener With Helper? #82

Closed
reasecret opened this issue May 14, 2020 · 1 comment
Closed

How To Use toast.addEventListener With Helper? #82

reasecret opened this issue May 14, 2020 · 1 comment

Comments

@reasecret
Copy link

We can stop toast timer in blade like this:
onOpen: (toast) => { toast.addEventListener('mouseenter', Swal.stopTimer) toast.addEventListener('mouseleave', Swal.resumeTimer) }

How can I implement this to helper in my controller?

I'm using this code in my controller:
toast('Profile updated','success')->timerProgressBar();

@maicol07
Copy link

I think this is related to my feature request #85

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

No branches or pull requests

3 participants