vue-directive-outside-click

0.0.3 • Public • Published

npm NPM npm bundle size GitHub last commit

vue-directive-outside-click

A Vue custom directive to close elements when clicking outside of the element.

Please Note

This is a test module for me to try and figure out publishing vue directives to NPM.

It is functional but the vast majority of the code used is taken from both the excellent article and the existing module by Taha Shashtari

Please read the original artice here: An Easy Way to Detect Clicks Outside an Element in Vue

Please use the original module here: A simple vue directive to detect outside clicks

Both the article and the module are both really well documented and the code commented...unlike mine here, which will probably break!

Package Sidebar

Install

npm i vue-directive-outside-click

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

4.39 kB

Total Files

4

Last publish

Collaborators

  • bweble