I have searched the docs, issues, and Google, but have not been able to find a solution to this:
How do I change the Agenda time range? Currently it is defaulting to 1 month. Can I make this 1 day?
oops missing some documentation. the prop is length (in days) which controls the range of the Agenda view
Great, thank you!
On Dec 24, 2016 11:31 AM, "Jason Quense" notifications@github.com wrote:
oops missing some documentation. the prop is length (in days) which
controls the range of the Agenda view—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/intljusticemission/react-big-calendar/issues/240#issuecomment-269093225,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALNpbhAh5zwnY8ICjZztgxDO4rv7zUGdks5rLVbVgaJpZM4LVQs5
.
For reference for people with the same question: Pass the prop like so <BigCalendar ... length={0.5} ... /> to get one day in the Agenda.
And note that, while this will change of events displayed, the range in the Header is evidently not controlled by this prop. If showing 1 day, you can do a custom agendaHeaderFormat to cut it down to the "start" portion of the date.
http://intljusticemission.github.io/react-big-calendar/examples/index.html here is the official doc. So length prop has been deprecated?
no it's just mistakenly undocumented
It's been added (and merged), so on next build it'll be there!