lutzvue

1.0.0 • Public • Published

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

/lutzvue/

    Package Sidebar

    Install

    npm i lutzvue

    Weekly Downloads

    32

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.22 kB

    Total Files

    5

    Last publish

    Collaborators

    • tbalint19