Pages navigation
You can navigate naturally with your fingers by scrolling through dates (horizontally) and scrolling through hours of the day (vertically). This guide describes further details about scrolling.
Navigate programatically
There are several methods available to navigate to a date or time programatically.
scrollToTime(minutesInDay)
: scroll vertically to a time in the daygoToDate(date)
: scroll horizontally to a custom dategoToNextPage()
: navigate to the next page (to the future)goToPrevPage()
: navigate to the previous page (to the past)goToNextDay()
: navigate to the next day (to the future). RequiresallowScrollByDay={true}
to work properly.goToPrevDay()
: navigate to the previous day (to the past). RequiresallowScrollByDay={true}
to work properly.
See more details about the methods in the full API.
Scroll one day at the time
Set the prop allowScrollByDay
to true
to allow scrolling horizontally by one day. If false
(the default), the scrolling goes one page at the time.
Scroll by page (default) | Scroll by day |
---|---|
allowScrollByDay={false} | allowScrollByDay={true} |