You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function computeTitle uses intervalStart and intervalEnd which include weekends. My undestanding is that start and end have hidden days skipped. By using start and end the title will reflect the period of time the calendar is actually showing (e.g. in this case it won't show the weekend).
A byproduct of using start and end is that in month view for October it would show something like September - November because that's the actual period the calendar is showing (last few days of September and first few of October).
Ticket: ETC-768
Purpose of Change: Correct a flaw in FullCalendar to correctly show the
dates in the title of the calendar, even when weekends are hidden
Description of Change: Logic is based on the suggestion by gas12n in
this GitHub issue:
fullcalendar#2884
I have a custom view that is defined as:
The function
computeTitle
usesintervalStart
andintervalEnd
which include weekends. My undestanding is thatstart
andend
have hidden days skipped. By usingstart
andend
the title will reflect the period of time the calendar is actually showing (e.g. in this case it won't show the weekend).A byproduct of using
start
andend
is that in month view for October it would show something like September - November because that's the actual period the calendar is showing (last few days of September and first few of October).This change seems to work for me:
Cheers
The text was updated successfully, but these errors were encountered: