-
Notifications
You must be signed in to change notification settings - Fork 33
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
[Question] Setting the initial week #80
Labels
enhancement
New feature or request
Comments
I would like to understand and help. With highlighting, you mean the selectedDate is displayed/ marked as highlighted? But the only way to not highlight them, is to not display any selectedDate. 🤔 |
Oh. So currently it's not possible to have a custom camera date. I will support it with the next version. :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a question regarding setting the initial week view based on a selected date.
I noticed the CalendarData class has a weekCameraDate property, which seems to control the starting point of the week view. I'm trying to figure out how to set this property so that the calendar displays the week containing a specific date that the user has selected.
In the application, there are two instances where the user interacts with the calendar. Initially, the user selects a date from a monthly calendar view. Later, in a different part of the app, I need to display a weekly calendar view.
I want this weekly calendar to open showing the week that includes the previously selected date.
My initial attempt at implementing this functionality. Here's the relevant code snippet:
And here's how I use CalendarWeek:
With this implementation, the calendar opens to the correct week based on the selectedDate from calendarViewModel. However, this approach also highlights the selectedDate when the weekly calendar opens, which I would like to avoid. I'd prefer the calendar to open to the week of the selected date without highlighting any specific date.
Again great work! Sorry for spamming you with questions.
The text was updated successfully, but these errors were encountered: