0.1.0 • Published 5 years ago

@netsells/vue-outside-events v0.1.0

Weekly downloads
2
License
ISC
Repository
-
Last release
5 years ago

npm version Build Status codecov

Vue Outside Events

Listen to events outside of the component

Installation

yarn add @netsells/vue-outside-events
import Vue from 'vue';
import OutsideEvents from '@netsells/vue-outside-events';

// register globally
Vue.component('OutsideEvents', OutsideEvents)

// or locally
export default {
  components: { OutsideEvents },
  // rest of your component
}

Usage

<outside-events @click="handleOutsideClick">
    Click somewhere else!
</outside-events>