Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

vue-press-directive

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-press-directive

vue long press directive

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

v-press

Install

yarn global add vue-press-directive

Usage

// main.js
import VuePressDirective from 'vue-press-directive'
import Vue from 'vue'

// long-press interval has an default value that is 600ms. But you still can override this with options.interval.
Vue.use(VuePressDirective, { interval: 600 })

new Vue({
  // Also you can override interval in the directive. Passing arguments in directive like this.
  template: `
    <article>
      <button v-press="handler">Long press this button.</button>
      <button v-press:100="handler">Long press this button with only 100ms.</button>
    </article>
  `,
})

see more in /example/index.html

FAQs

Package last updated on 02 Nov 2018

Did you know?

Socket

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