Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@sysvale/vue3-long-click
Advanced tools
Vue long click (longpress) directive
Checkout the demo at https://ittus.github.io/vue-long-click/
npm install vue-long-click --save
import { longClickDirective } from 'vue-long-click'
const longClickInstance = longClickDirective({delay: 400, interval: 50})
Vue.directive('longclick', longClickInstance)
Include vue-long-click library from cdn
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
<script src="https://unpkg.com/vue-long-click@0.0.4/dist/libs/vue-long-click.umd.min.js"></script>
and create custom directive to use
const longClickInstance = window['vue-long-click'].longClickDirective({delay: 400, interval: 50})
Vue.directive('longclick', longClickInstance)
<button v-longclick="() => changeValue(1)">+</button>
Prop | Type | Default | Description |
---|---|---|---|
delay | Integer (milliseconds) | 400 | Delay until long click function is fired |
interval | Integer (milliseconds) | 50 | If value is greater than 0, handler function will be fire every interval milliseconds when component is pressed |
## Project setup
npm install
## Compiles and hot-reloads for development
npm run serve
## Build library
npm run build:lib
## Run tests
npm run test
## Lints and fixes files
npm run lint
FAQs
Long click (longpress) directive library for VueJS
The npm package @sysvale/vue3-long-click receives a total of 0 weekly downloads. As such, @sysvale/vue3-long-click popularity was classified as not popular.
We found that @sysvale/vue3-long-click demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.