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:
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:
Define the ViewState
plugin's currentViewName
property. The ViewSwitcher
plugin is not required in this case: