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

Config #249

Open
leoncvrtila opened this issue May 2, 2024 · 0 comments
Open

Config #249

leoncvrtila opened this issue May 2, 2024 · 0 comments

Comments

@leoncvrtila
Copy link

Thank you for wanting to take the time to report a problem. In order for us to give you the best
help possible,
please take a moment to give us as much relevant information as possible. Any issues that do not use
the 2 required sections might be closed.

Context (REQUIRED):

  • Browser: Chrome
  • Browserversion: 124.0.6367.63
  • Qalendar Version: 3.8.1

Describe the bug (REQUIRED)

So how ever I define config and pass it as prop to Qalendar nothing is changeing.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Qalendar
  2. Try to pass config
  3. Test if works

Expected behavior

As described in docs, config should affect calendar.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

I have copy and paste docs config and it does not work:
<Qalendar
:events="events"
:config="{
week: {
// Takes the value 'sunday' or 'monday'
// However, if startsOn is set to 'sunday' and nDays to 5, the week displayed will be Monday - Friday
startsOn: 'monday',
// Takes the values 5 or 7.
nDays: 7,
// Scroll to a certain hour on mounting a week. Takes any value from 0 to 23.
// This option is not compatible with the 'dayBoundaries'-option, and will simply be ignored if custom day boundaries are set.
scrollToHour: 5
},
month: {
// Hide leading and trailing dates in the month view (defaults to true when not set)
showTrailingAndLeadingDates: false
},
// Takes any valid locale that the browser understands. However, not all locales have been thorougly tested in Qalendar
// If no locale is set, the preferred browser locale will be used
locale: 'de-DE',
style: {
// When adding a custom font, please also set the fallback(s) yourself
fontFamily: 'Nunito'
},
// if not set, the mode defaults to 'week'. The three available options are 'month', 'week' and 'day'
// Please note, that only day and month modes are available for the calendar in mobile-sized wrappers (~700px wide or less, depending on your root font-size)
defaultMode: 'day',
// The silent flag can be added, to disable the development warnings. This will also bring a slight performance boost
isSilent: true,
showCurrentTime: true // Display a line indicating the current time
}"
@updated-period="updatedPeriod"
@datetime-was-clicked="dateTimeWasClicked"
@date-was-clicked="dateWasClicked"
@event-was-clicked="eventWasClicked"
>
<template #weekDayEvent="eventProps">


{{ eventProps.eventData.time }}

      <span>{{ eventProps.eventData.title }}</span>
    </div>
  </template>

  <template #monthEvent="monthEventProps">
    <span>{{ monthEventProps.eventData.title }}</span>
  </template>
</Qalendar>
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

No branches or pull requests

1 participant