Socket
Socket
Sign inDemoInstall

vueclaw

Package Overview
Dependencies
11
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vueclaw

A wrapper for Claw.


Version published
Weekly downloads
131
increased by37.89%
Maintainers
1
Install size
11.0 kB
Created
Weekly downloads
 

Readme

Source

VueClaw

A wrapper for Claw.

demo

Try it out!

dependencies

  • Claw

setup

npm

npm install vueclaw

ES module

Register the directive globally.

import Vue from 'vue';
import VueClaw from 'vueclaw';

Vue.directive(VueClaw.name, VueClaw);

or

Register the directive in the scope of a component.

import VueClaw from 'vueclaw';

export default {
  directives: {
    [VueClaw.name]: VueClaw,
  },
  /*...*/
};

browser

<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/@seregpie/claw"></script>
<script src="https://unpkg.com/vueclaw"></script>

If Vue is detected, the directive will be registered automatically.

usage

<template>
  <div
    v-claw:pan="onPan"
    v-claw:tap="onTap"
  ><!--...--></div>
</template>
<script>
export default {
  methods: {
    onPan(event) {
      // handle pan
    },
    onTap(event) {
      // handle tap
    },
  },
  /*...*/
};
</script>

Keywords

FAQs

Last updated on 18 Nov 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc