Example of Show/Hide Resources in React Scheduler Component

/
/
AddRemoveResources

This demo illustrates how to dynamically add or remove resources to and from the Scheduler layout.

More Details...

Loading....
Description

In this demo, Scheduler is initially displayed with single resource with its related set of appointments. When the additional checkboxes given are checked and unchecked, the respective resources gets added up or removed from the scheduler layout. To add new resources dynamically, addResource method is used which accepts the arguments such as resource object, resource name (within which level, the resource object to be added) and index (position where the resource needs to be added). To remove the resources dynamically, removeResource method is used which accepts the index (position from where the resource to be removed) and resource name (within which level, the resource object presents) as parameters.