ViewSwitcher Plugin Reference

A plugin that renders the Scheduler’s view switcher.

Import

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

Dependencies

Properties

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

Interfaces

ViewSwitcher.SwitcherProps

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.