ViewSwitcher Plugin Reference

A plugin that renders the Scheduler’s view switcher.


Use the following statement to import a plugin with embedded theme components:

import { ViewSwitcher } from '@devexpress/dx-react-scheduler-material-ui';

You can import the themeless plugin if you want to use custom components:

import { ViewSwitcher } from '@devexpress/dx-react-scheduler';

User Reference



Name Type Default Description
switcherComponent ComponentType<ViewSwitcher.SwitcherProps>   A component that renders the view switcher.



Properties passed to a component that renders the view switcher.

Field Type Description
currentViewName string A displayed view’s name.
availableViewNames Array<string> An array of available view’s names.
onChange (nextViewName: string) => void A function that handles changes to the displayed view.

Plugin Components

Name Properties Description
ViewSwitcher.Switcher ViewSwitcher.SwitcherProps A component that renders the view switcher.

Additional properties are added to the component’s root element.