Vue Scheduler - View Switcher

The view switcher is a predefined toolbar item that allows users to switch between Scheduler views.

View Switcher

To specify available views, configure the views array. To specify the current view, configure the currentView property:

App.vue
  • <template>
  • <DxScheduler
  • :views="views"
  • current-view="day"
  • />
  • </template>
  •  
  • <script>
  • import 'devextreme/dist/css/dx.fluent.blue.light.css';
  •  
  • import { DxScheduler } from 'devextreme-vue/scheduler';
  •  
  • const views = ['day', 'week', 'agenda'];
  • </script>
NOTE
  • Be sure to include the currentView value in the views array.
  • If the views array is empty or contains a single item, Scheduler hides the view switcher.

On mobile devices, Scheduler displays the view switcher as a drop-down menu:

Drop-down View Switcher

To integrate the drop-down menu view switcher on other devices, enable useDropDownViewSwitcher.

See Also