The SchedulerEditSlot component is responsible for the editing functionality of a Slot.

To extend the default SchedulerEditSlot, set the editSlot property to either the Scheduler or a specific view, to a modified version of the SchedulerSlotItem component.

Controlling the Editing

The SchedulerEditSlot exposes the following properties to allow controlling the internal edit state.

To control the state, provide the the value-handler pair. For example, if you want to control the formItem, provide your own onFormItemChange handler, modify the DataItem as needed, and pass it back through the formItem property.

The following example demonstrates controlling the formItem state to disallow item creation outside working hours. We will be using the view slot from the SchedulerViewSlot article.

View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?