Replies: 2 comments 1 reply
-
|
Hello,
See firstDay option.
See highlightedDates option. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Vladimir,
*Many* thanks for your feedback. I had overseen these options. I owe you a
beer for wasting your time.
However, I have a suggestion I believe would be greatly beneficial for your
component. I found this:
[image: image.png]
I tested the allEventsUpdated callback function a little. It almost solved
a requirement I have. I would like to change the display of the dates based
on something that isn't necessarily related to the events that day. See
below. Our season opens on the 1st of April, and I'd like to highlight this
in the calendar. Kindly see below.
[image: image.png]
This is something that calendar creators seem to have overlooked. In my
case, I would like to highlight dates when we are open (for instance),
perhaps show weekends and holidays in another color, or days "fully booked"
in another color, and so forth.
A callback function along the same lines as allEventsUpdated, let's call it
"beforeRenderDate" would solve this gracefully. With this, the dates
display could be tweaked, unrelated to the (possible) events. In my example
above, I simply added a CSS-class to change the display of the date.
I hope you give this some thought. I would make the component even better!
Best wishes,
/Magnus
…On Tue, Feb 3, 2026 at 8:56 AM Vladimir ***@***.***> wrote:
Hello,
Is the start of the week always Sunday? Is there a way of changing this?
See firstDay
<https://github.com/vkurko/calendar?tab=readme-ov-file#firstday> option.
Is there a way of highlighting the selected day?
See highlightedDates
<https://github.com/vkurko/calendar?tab=readme-ov-file#highlighteddates>
option.
—
Reply to this email directly, view it on GitHub
<#612 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADZ2AJHSI4SHZZMFWTIYM334KBIB5AVCNFSM6AAAAACTY5REV2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKNRYGA2DSOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am new to the Event Calendar, but I have successfully stitched it into my existing code. It's nice!
I have a couple of questions. As usual, a disclaimer: I may have overlooked something obvious.
Is the start of the week always Sunday? Is there a way of changing this? I am supplying different locales, but this doesn't affect the rendering of the week start.
Is there a way of highlighting the selected day? I have tried a workaround inspired by "optional highlight classes #446", creating a background event when selecting a day. However, I run into other issues here. The week display shows it, but the month display doesn't. Is this possible to address or is there a simpler way?
It is also a little cumbersome to create and destroy background events when clicking in the calendar, but "doable".
Beta Was this translation helpful? Give feedback.
All reactions