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

fix(VCalendar): show all days of multi-day events #20908

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

Conversation

Hendrik-Mueller-Overzone

Description

For showing the event, a check was added to the filter, to also include days, that lay between the start and end date of an event.

fixes #19065

Markup:

<template>
  <v-app>
    <v-container>
      <v-row>
        <v-col cols="12">
          <div style="height: 600px">
            <v-calendar :events="events" view-mode="month" />
          </div>
        </v-col>
      </v-row>
    </v-container>
  </v-app>
</template>

<script>
  export default {
    name: 'Playground',
    setup () {
      const today = new Date()

      const plus2 = new Date()
      plus2.setDate(today.getDate() + 4)

      return {
        events: [
          {
            title: 'Test 1',
            start: today,
            end: plus2,
            color: 'red',
          },
        ],
      }
    },
  }
</script>

@johnleider johnleider force-pushed the fix/19065-calendar-multi-day-events branch from bd5ad73 to 3122594 Compare January 24, 2025 15:28
@johnleider
Copy link
Member

While this fix allows the display of chips over the multiple days, it's not in the style I would expect.

@Hendrik-Mueller-Overzone
Copy link
Author

Hendrik-Mueller-Overzone commented Jan 27, 2025

@johnleider I understand and I agree, this was the only thing I could manage with my limited time and it at least shows the correct information, if not in a great style.

If I'm able to find more time, what would be a styling to expect? Elongated chips, that span the the range of days?

@johnleider
Copy link
Member

@johnleider I understand and I agree, this was the only thing I could manage with my limited time and it at least shows the correct information, if not in a great style.

If I'm able to find more time, what would be a styling to expect? Elongated chips, that span the the range of days?

Probably something like Google Calendar

image

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.4.10] multi-day events in v-calendar are broken
2 participants