npm

@dipser/outerclick.vuejs

1.0.2 • Public • Published

outerclick.vuejs

Outerclick vuejs-mixin by references.

Demo

http://tools.bitfertig.de/outerclick.vuejs/

Install

npm i @dipser/outerclick.vuejs

Usage

In a .vue file:

<template>
    <button @click="register_outerclick(['ref', 'ref2'], ()=>close())" ref="ref"></button>
    <div ref="ref2">Inner</div>
</template>

<script>
import outerclick from '@dipser/outerclick.vuejs';
export default {
    mixins: [
        outerclick
    ],
    methods: {
        close: function(){}
    }
}
</script>

More

Package Sidebar

Install

npm i @dipser/outerclick.vuejs

Weekly Downloads

1

Version

1.0.2

License

Apache-2.0

Unpacked Size

20 kB

Total Files

6

Last publish

Collaborators

  • dipser