Skip to content
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

Calendar Modes (Week and Month) #689

Closed
diogoAntunes opened this issue Jan 22, 2018 · 2 comments
Closed

Calendar Modes (Week and Month) #689

diogoAntunes opened this issue Jan 22, 2018 · 2 comments
Assignees
Labels

Comments

@diogoAntunes
Copy link

Thank you for all the hard work on this library, it is a lifesaver 👍

I was trying to create a Month calendar, and a Week calendar, I was looking trough the readme and found out that we suppose to have a week/month mode?

Week/month mode - show 1 row of weekdays. Or 2, 3 or 6

But upon browsing the source code I'm not sure how is this accomplished, any hints? Thank you

@d-srd
Copy link

d-srd commented Jan 22, 2018

I’ve implemented this. It’s relatively simple. For weekly view: tell your dataSource to use 1 row, no strict boundaries and to generate out dates for first month only. For monthly view: 6 rows, strict boundaries, all out dates. Then just call reloadData on the calendar view after the switch.

@patchthecode
Copy link
Owner

@d-srd is right correct.
I wi was asked about single row calendar so much, i put in in here -> #581

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants