Newton's Preposterous Miscalculation

npm

Need private packages and team management tools?Check out npm Orgs. »

vue-long-press-directive

1.0.2 • Public • Published

vue-long-press-directive

Long press directive plugin for Vue.js. See the live demo.

npm install vue-long-press-directive

Usage

Register the plugin with Vue. It's possible to specify the press duration in the options object.

var Vue = require('vue')
var longpress = require('vue-long-press-directive')
 
Vue.use(longpress, { duration: 1000 })

The directive can now be used in a template.

<button v-long-press='onlongpress'>Press and hold</button>

install

npm i vue-long-press-directive

Downloadsweekly downloads

64

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability