Below is my code.
<script>
function dayClicked(day) {
console.log(day, 'day');
}
</script>
<template>
<div>
<v-calendar is-expanded show-weeknumbers is-range @dayclick='dayClicked' />
</div>
</template>
It is working fine to get a click event on the day. But I need to listen to the event for the long click of 2 seconds on a particular day.
So is there any way to achieve this thing in v-calendar or any other way?
Packages detail for the specific version
- "vue": "^3.2.37"
- "v-calendar": "^3.0.0-alpha.8",