# SchedulerEditSlot

The [SchedulerEditSlot](https://www.telerik.com/kendo-react-ui-develop/components/scheduler/api/schedulereditslot) component is responsible for the editing functionality of a [Slot](https://www.telerik.com/kendo-react-ui-develop/components/scheduler/customization/slots).

To extend the default `SchedulerEditSlot`, set the [editSlot](https://www.telerik.com/kendo-react-ui-develop/components/scheduler/api/schedulerprops#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.

* [formItem](https://www.telerik.com/kendo-react-ui-develop/components/scheduler/api/schedulereditslotprops#formitem) and [onFormItemChange](https://www.telerik.com/kendo-react-ui-develop/components/scheduler/api/schedulereditslotprops#onformitemchange)
* [quickCreateFormItem](https://www.telerik.com/kendo-react-ui-develop/components/scheduler/api/schedulereditslotprops#quickCreateFormItem) and [onQuickCreateFormItemChange](https://www.telerik.com/kendo-react-ui-develop/components/scheduler/api/schedulereditslotprops#onQuickCreateFormItemChange)

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.

To restrict event creation, control both pairs: `quickCreateFormItem` opens the quick-create popover, and `formItem` opens the full editor. Always accept `null` so that the popover and editor can close.

The following example demonstrates controlling both states to disallow item creation outside working hours. We will be using the `view` slot from the [SchedulerViewSlot](https://www.telerik.com/kendo-react-ui-develop/components/scheduler/customization/slots/slot) article.

[Demo Source](https://demos.telerik.com/kendo-react-ui/scheduler/slots/edit-slot/controlled-state/func/source.txt)

## Suggested Links

* [API Reference of the Scheduler](https://www.telerik.com/kendo-react-ui-develop/components/scheduler/api/scheduler)
* [API Reference of the SchedulerEditSlot](https://www.telerik.com/kendo-react-ui-develop/components/scheduler/api/schedulereditslot)
* [KendoReact Scheduler](https://www.telerik.com/kendo-react-ui/components/scheduler/)
