JavaScript/jQuery Scheduler - Date Navigator

The date navigator is a predefined toolbar item that allows you to change the displayed date in the dxScheduler.

Scheduler Date Navigator

The date navigator is a DevExtreme ButtonGroup with three buttons: previous date ('prev'), next date ('next'), and date interval ('dateInterval'). You can customize the order of these buttons or add new buttons using options.items:

index.js
  • $("#scheduler-container").dxScheduler({
  • // ...
  • toolbar: {
  • items: [{
  • name: "dateNavigator",
  • options: {
  • items: ['prev', 'dateInterval', 'next', {
  • icon: 'more',
  • onClick() {
  • console.log("The custom button was clicked.")
  • },
  • }]
  • }
  • }]
  • }
  • });

You can configure the customizeDateNavigatorText callback to customize the date interval text. To customize the range of available dates in the date navigator, configure min and max properties:

index.js
  • $(function() {
  • $("#schedulerContainer").dxScheduler({
  • // ...
  • min: new Date(2026, 2, 3),
  • max: new Date(2026, 4, 3)
  • });
  • });

To hide the date navigator, configure toolbar.items[] and omit "dateNavigator". The following code snippet displays only the "viewSwitcher" predefined toolbar item:

index.js
  • $("#scheduler-container").dxScheduler({
  • // ...
  • toolbar: {
  • items: ['viewSwitcher']
  • }
  • });