VueClaw
A wrapper for Claw.
demo
dependencies
setup
npm
npm install vueclaw
ES module
Register the directive globally.
;; Vue;
or
Register the directive in the scope of a component.
; directives: VueClawname: VueClaw /*...*/;
browser
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>