DevExtreme Reactive component libraries are in maintenance support mode.
The React Scheduler component allows a user to switch between views at runtime.
The following plugins implement this feature:
Import the plugins listed above to enable a user to switch between views at runtime.
In uncontrolled mode, use the ViewState
plugin's defaultCurrentViewName
property to specify the initial view:
import * as React from 'react';
export default () => (
In controlled mode, use the ViewState
plugin's currentViewName
property to specify the view and handle the onCurrentViewNameChange
event to control the view's state externally. Use the name
property to specify the view's unique identifier and the displayName
property to specify the view's display name:
import * as React from 'react';
export default () => {
Define the ViewState
plugin's currentViewName
property. The ViewSwitcher
plugin is not required in this case:
import * as React from 'react';
const ExternalViewSwitcher = ({