Problem/Motivation
It'd be very useful to be able to control which day of the week is considered "first" for the month and week calendar views.
Monday vs. Sunday or Saturday is the obvious case, but some sites might need their calendar views to consider each week starting on Wednesday or something.
Proposed resolution
Add a view display setting and propagate it to the fullcalendar JS library to control first day of the week.
We should allow all 7 choices, and default to Sunday to maintain current behavior.
Remaining tasks
Figure out how the underlying JS library handles/supports this.
Add the setting to the view display.
Propagate the value to the JS.
Upload patch.
Review/test.
Commit.
User interface changes
New views display setting to control day-of-week (dow) to start from.
Different UI for end-users of the calendar if the view is configured to use this.
API changes
None.
Data model changes
None. Storage for the display setting is handled by views itself.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3010693_2-set-first-day.patch | 2.62 KB | MorinLuc0 |
| #2 | Hospital Schedule Content Medical Case Management dev .png | 208.06 KB | MorinLuc0 |
Comments
Comment #2
MorinLuc0 commentedCreated a patch that allows the user to set the firstDay in the calendar settings.
Comment #3
MorinLuc0 commentedComment #4
mingsongThanks Luc.
Good work. Well done!
Comment #6
damienmckennaThis was committed and is available in the 8.x-2.3 release.