Navigation
The Scheduler component provides the option to control its behavior when using the the Prev and Next navigation buttons by configuring the step
and numberOfDays
properties of each view.
The
step
andnumberOfDays
properties are only available in the Agenda, Timeline and Day views. For custom navigation scenarios in the Month and Week views, please check the custom navigation article below.
Default Navigation
The following example allows you to test how the Scheduler behaves when changing the step
and numberOfDays
properties for the Agenda, Timeline and Day views.
Custom Navigation
As an alternative to what is discussed above, the Scheduler gives you the freedom to integrate custom navigation logic by dynamically updating the not only the step
and numberOfDays
properties but also the date
one, each time the user interacts with the Prev and Next buttons.
The following example uses the onDateChange
event to implement a logic that moves the days in the day
view by two days.