React Scheduler - View Switching

The React Scheduler component allows a user to switch between views at runtime.

The following plugins implement this feature:

Basic Setup

Import the plugins listed above to enable a user to switch between views at runtime.

Uncontrolled Mode

In uncontrolled mode, use the ViewState plugin’s defaultCurrentViewName property to specify the initial view:

Controlled Mode

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:

Control the View Externally

Define the ViewState plugin’s currentViewName property. The ViewSwitcher plugin is not required in this case: