Help us make our products better.Take our 5 minute survey.
Dismiss

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.

This site uses cookies to make your browsing experience more convenient and personal. Cookies store useful information on your computer to help us improve the efficiency and relevance of our site for you. In some cases, they are essential to making the site work properly. By accessing this site, you consent to the use of cookies. For more information, refer to DevExpress’ privacy policy and cookie policy.