Is there a way though which I can restrict the calendar timeline only for a day? And the toggle cycles only through the day view and hour view.
Also, similar functionality for restricting a week?
What kind of issue are you experiencing?
Yep, you can likely do this using a few props:
visibleTimeStart and visibleTimeEnd - https://github.com/namespace-ee/react-calendar-timeline#visibletimestart-and-visibletimeend
minZoom - https://github.com/namespace-ee/react-calendar-timeline#minzoom
maxZoom - https://github.com/namespace-ee/react-calendar-timeline#maxzoom
timeSteps - https://github.com/namespace-ee/react-calendar-timeline#timesteps
With timeSteps, just specify 0 for the units you don't want to zoom to.
I meant, just for a day and not an entire month or a year.
So the max zoom you want is one day? You can use the min/maxZoom prop.
Here's a related bug to zoom though: https://github.com/namespace-ee/react-calendar-timeline/issues/279
Closing due to inactivity. If this issue is still not resolved, please post a comment and I'll reopen
I'm into this.
I've set both minZoom and maxZoom to the same value (a month), assuming this would keep the view as "fixed".
Instead, the default view is not set to maxZoom, and when clicking the header renders a different range of time, ignoring minZoom.
My goal is to render a view only by month (and move on the calendar by month as well)
Most helpful comment
I'm into this.
I've set both minZoom and maxZoom to the same value (a month), assuming this would keep the view as "fixed".
Instead, the default view is not set to maxZoom, and when clicking the header renders a different range of time, ignoring minZoom.
My goal is to render a view only by month (and move on the calendar by month as well)