SchedulerEditorProps
Props for configuring the customization options of the scheduler's editor dialog for event creation and editing. Enables control over dialog visibility, event data, fields, validation, and styling through a comprehensive configuration interface. Supports both field-based and children-based rendering approaches for flexible editor customization.
Props
The following table outlines the props for the SchedulerEditorProps:
| Name | Type | Default | Description |
|---|---|---|---|
| action | - | The editor mode indicating whether creating ('Add') a new event or editing ('Edit') an existing one. Useful for conditional rendering or validation logic. | |
| children | node | - | Custom React components or content rendered as editor children when |
| className | string | - | Adds custom CSS class names to the editor container element. Enables custom styling and visual customization through external CSS. |
| data | - | The event data object being edited or created with all property values. Bind to this for two-way data binding with form inputs. | |
| dialogProps | - | Configuration object for the underlying editor dialog component. Allows customization of dialog appearance, behavior, and properties. | |
| fields | - | An array of field configurations controlling which fields are displayed and how they render. Provides granular control over editor input customization and visibility. | |
| onClose | ( ) => void | - | Callback function triggered when the user requests to close the event editor dialog. Allows custom close logic or confirmation dialogs. |
| open | boolean | - | Controls whether the event editor dialog is visible (true) or hidden (false). Allows programmatic control over editor visibility. |
| originalData | - | The original event data before any edits (only present in edit mode; undefined when creating new events). Useful for detecting changes or reverting modifications. | |
| style | CSSProperties | - | Inline CSS styles applied directly to the editor container element. Enables direct style customization without external CSS. |