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

eventTimeFormat: Take range as an input rather than individual time? #149

Closed
meisemann1999 opened this issue Jul 4, 2023 · 3 comments
Closed
Labels
enhancement New feature or request

Comments

@meisemann1999
Copy link

meisemann1999 commented Jul 4, 2023

As of now, it seems that this function takes in a single parameter and runs twice for each event (once for start and once for end). Would it be possible to have a variation of this function that takes the range (start and end time), which would allow for using something like Intl.DateTimeFormat.formatRange to create the date? I am thinking of a scenario in which the event time could be displayed on the calendar as, for example, "5:00 - 5:30 PM" rather than "5:00 PM - 5:30 PM". This is a little more concise and could save some space on smaller screen sizes,

@vkurko
Copy link
Owner

vkurko commented Jul 5, 2023

This is a good idea. I'll think about how I can add such a setting. In the meantime, you can use eventContent to have full control over the rendering of events and display the time yourself as needed.

@vkurko vkurko added the enhancement New feature or request label Jul 5, 2023
@vkurko
Copy link
Owner

vkurko commented Aug 17, 2023

In v2.0.0 the eventTimeFormat now receives 2 parameters for the time span to be formatted. Please check.

@vkurko
Copy link
Owner

vkurko commented Aug 22, 2023

I hope I can close this issue.

@vkurko vkurko closed this as completed Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants