lutzvue
v1.0.0
Published
Minimalistic idle detection for vue applications
Downloads
6
Readme
Lutzvue
Idle user checking for frontend applications
Usage
Start monitoring the user
created() {
this.$watchIdle()
}
// or
created() {
this.$watchIdle()
}
Subscribe with a function
created() {
this.$watchIdle()
this.$onIdle(() => alert("HEY"))
}
methods: {
loadSomething() {
this.$ignoreIdle()
API.loadSomething().then(/*...*/)
}
}
License
MIT © TBalint19