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';
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 |
---|---|---|
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. |
Describes a scheduler view object.
Field | Type | Description |
---|---|---|
name | string | View's unique identifier. |
displayName | string | View's visible name. |
Name | Properties | Description |
---|---|---|
ViewSwitcher.Switcher | ViewSwitcher.SwitcherProps | A component that renders the view switcher. |
Additional properties are added to the component's root element.