-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Control over how multi-day timed events rendering their time text #3038
Comments
this was intentional behavior for events that span across the nextDayThreshold. If you scroll up you'll see the event on Monday continue from midnight to 9am on Tuesday. If there is enough demand, we could potentially introduce a setting for fine-grain control of this behavior. |
hmm, ok, but if it's intentional, then why do I get a different end time in |
this issue concerns itself with how an event's text is displayed. concerned with what text renders on each event segment when it spans across two days. It's merely what text is displayed. the underlying data, the |
I, too, would like this functionality. It would be nice to have the option of whether to show the splits or the actual event time on both segments. |
yes i would like this functionality to be implemented. can it be done using range option? i tried using range but in vain. can somebody help me here |
It would be nice to have this functionality! Hope it gets implemented. 👍 |
This would be very useful for my team's usage. |
I've found at least four locations that are affected by this issue. Have a look at this Codepen: https://codepen.io/erabl/pen/GRXgNVm
I was able to find a workaround to show the actual start/end time of the events for eventContent: (arg) => {
if (arg.event.start && arg.event.end) {
// this is just a quick hack: use a proper date formatter with timezone!
arg.timeText = `${arg.event.start.toISOString().slice(11,16)} - ${arg.event.end.toISOString().slice(11,16)}`;
}
} but could not get this to work with @arshaw, @acerix do you know a workaround that is compatible with v6? Are there any plans to add a flag that controls how multiday event times are rendered? |
I figured out a workaround for eventContent: (arg) => {
if (arg.event.start && arg.event.end) {
// this is just a quick hack: use a proper date formatter with timezone!
arg.timeText = `${arg.event.start.toISOString().slice(11,16)} - ${arg.event.end.toISOString().slice(11,16)}`;
}
return true; // render default content
} This hint unfortunately is not mentioned in the regular documentation: https://fullcalendar.io/docs/content-injection |
Steps to reproduce:
1: go to http://fullcalendar.io/js/fullcalendar-2.6.0/demos/selectable.html
2: go to week view
3: select a timespan from Monday to Tuesday
Expected result:
Actual result:
Screenshot:
The text was updated successfully, but these errors were encountered: