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): add event slot #19555

Merged
merged 2 commits into from
Apr 11, 2024
Merged

feat(VCalendar): add event slot #19555

merged 2 commits into from
Apr 11, 2024

Conversation

nekosaur
Copy link
Member

@nekosaur nekosaur commented Apr 6, 2024

Description

add event slot for v-calendar

Markup:

<template>
  <v-app>
    <v-main>
      <v-calendar :events="events">
        <template #event="{ event }">
          <div>custom slot for {{ event.title }}</div>
        </template>
      </v-calendar>
    </v-main>
  </v-app>
</template>

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

  const events = ref([
    {
      start: new Date(),
      end: new Date(),
      title: 'foo',
    },
  ])
</script>

@johnleider johnleider added the T: feature A new feature label Apr 10, 2024
@johnleider johnleider added this to the v3.5.x milestone Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VCalendar VCalendar T: feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants