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

Multiple Idles #29

Open
chanr32 opened this issue Mar 26, 2018 · 6 comments
Open

Multiple Idles #29

chanr32 opened this issue Mar 26, 2018 · 6 comments

Comments

@chanr32
Copy link

chanr32 commented Mar 26, 2018

Is it possible to have multiple callbacks with different timings?

@gabrielstuff
Copy link
Member

Hello @chanr32. Do you mean something like multiple instance of vue-idle ? for getting event related to idle in 1minutes / 2 minutes / etc ?

@piyushbeli
Copy link

@gabrielstuff Yes. I also need this and exactly what you said.

@gabrielstuff
Copy link
Member

Hello,
If anyone want / need this, I'll be glad to help.
The idea I guess would be to define one idle which listen to mouse event and one other idle which depends on touch event ?

If anyone can provide, real life example. I'll be grateful.

Thanks

@piyushbeli
Copy link

@gabrielstuff , There could be plenty of real-life examples. Let say we want to log out the user after 10 mins of inactivity (which is a very common use case).
Now in the same application let say we want to show a help popup after a user is idle on a page for 2 mins.

@gabrielstuff
Copy link
Member

gabrielstuff commented Feb 7, 2019 via email

@bi6o
Copy link

bi6o commented Sep 2, 2020

Hi, I am also wondering if it's possible to have multiple idle time listeners or a way to bind idle-vue to a component instead of the main app? or perhaps both?

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

4 participants