Closed allella closed 2 weeks ago
Perhaps the solution to auto-center / jump to the current day and week while in the dayGridMonth view is more like this solution https://stackoverflow.com/a/48100619
@all-contributors please add @MhdGhaithAlhelwany for code
@allella
We had trouble processing your request. Please try again later.
@all-contributors please add @MhdGhaithAlhelwany for code
@allella
Could not find the user MhdGhaithAlhelwany
on github.
Reopening as Bogdan found in #261 that the Next and Previous buttons stopped working.
@allella should we close this now?
Was something re-implemented? Having it center on the current week would still be nice.
@allella I can take this on if you want. Do you just want it scrolled into view on page load?
It just seems like centering / focusing on the current week would be a nice improvement. Though, it's not a critical feature if it's going to be hard.
We had a PR that did the job, but it wouldn't uncenter when next or previous arrows were clicked, so we rolled that PR back.
So is the summary of the desired behavior...
If so, that doesn't sound like it'll be too hard.
I saw your note on a function Fullcalendar may have built in. If that doesn't work out, I know roughly how to do this vanilla.
@JSn1nj4 yes that sounds good.
The HG calendar doesn't move to the current week, which can be a bit inconvenient or confusing.
We should explore it's it's possible to automatically center / jump the calendar to the current date / week? Maybe with https://fullcalendar.io/docs/Calendar-gotoDate