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
currentView SchedulerView A displayed view.
availableViews Array<SchedulerView> An array of available views.
onChange (nextViewName: string) => void A function that handles changes to the displayed view.

SchedulerView

Describes a scheduler view object.

Field Type Description
name string View's unique identifier.
displayName string View's visible name.

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.