Idle time option
Closed this issue · 5 comments
piterjov commented
I think idletime option does not work even If I put 500ms.
Any example of implementing this plugin as component and passing custom idle time to it?
I would be grateful
Thanks
gabrielstuff commented
Hi! normally you just supply an idle time in ms.
idleTime: 2000
Vue.use(IdleVue, {
eventEmitter: eventsHub,
idleTime: 10000
})
const vm = new Vue({
el: '#app',
data () {
return {
messageStr: 'Hello'
}
},
onIdle() {
this.messageStr = 'ZZZ'
},
onActive() {
this.messageStr = 'Hello'
}
})
Could you show a codepen of what you are trying to achieve ?
gabrielstuff commented
@piterjov does that work for you ?
piterjov commented
Hi @gabrielstuff , still not. How can I use it as component?
which will listen to those events from above?
Thanks
gabrielstuff commented
No real life example shared.
Closing.
flourigh commented