Wondering what’s next for npm?Check out our public roadmap! »

    @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

    Install

    npm i @dipser/outerclick.vuejs

    DownloadsWeekly Downloads

    23

    Version

    1.0.2

    License

    Apache-2.0

    Unpacked Size

    20 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar