1.0.0 • Published 6 years ago

vue-page-visibility-awesome-awesome v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

vue-page-visibility

A Vue 2.x component of easy-to-config page visibility api

Introduction

Demo

Install

$ npm install vue-page-visibility --save

Usage

    <VuePageVisibility 
        @documentInactive="documentInactive" 
        @documentActive="documentActive" >
    </VuePageVisibility>
import VuePageVisibility from 'vue-page-visibility'

new Vue({
    components: {
        VuePageVisibility
    }
})

Events

NameParamsDescription
documentInactivenoneTriggered when user leave the focus page
documentActivenoneTriggered when user refocus the page

Contribute

Feel free to open an issue if you find a bug.

Feature requests and PRs are welcome.

LICENSE

MIT Licensed. See LICENSE.