Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(VCalendar): implement click:date #21014

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

babu-ch
Copy link
Contributor

@babu-ch babu-ch commented Feb 24, 2025

Description

fixes #20920

It seems that click:date exists in vuetify2
https://v2.vuetifyjs.com/ja/api/v-calendar/#events

Markup:

<template>
  <v-app>
    <v-container>
      <h1>Selcted Date : {{selectedDate}}</h1>
      <v-calendar
        v-model="calender"
        event-overlap-mode="stack"
        @click="onDateClick"
      >
      </v-calendar>
    </v-container>
  </v-app>
</template>

<script setup>
  import { ref } from 'vue'

  const selectedDate = ref()
  const calender = ref()
  const onDateClick = event => {
    selectedDate.value = event
    console.log(event)
  }
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report][3.7.7] When Click on the event didn't pass the date that click
1 participant