How can I achieve the 2 second long click listing on day in v-calendar for vue js?

136 views Asked by At

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

  1. "vue": "^3.2.37"
  2. "v-calendar": "^3.0.0-alpha.8",
0

There are 0 answers