1.1.2 • Published 6 years ago

ic-clickoutside v1.1.2

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

v-clickoutside

A directive for clicking a outside area of a target and trigger a callback.

Install

$ npm i ic-clickoutside || yarn add ic-clickoutside

Usage

It is dead simple, a handler triggered by clicking clickoutside or do nothing if not specify a handler.

<div v-clickoutside="handler">
    
</div>

The handler receive one argument: clicked element.