UNPKG

@progress/kendo-react-scheduler

Version:

React Scheduler brings the functionality of Outlook's Calendar to a single UI component. KendoReact Scheduler package

55 lines (54 loc) 3.6 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { DataItem } from '../models/index.js'; import { SchedulerEditSlotProps } from '../slots/SchedulerEditSlot.js'; import * as React from 'react'; /** @hidden */ export interface SchedulerEditSlotContextProps { props: SchedulerEditSlotProps; form: SchedulerEditSlotFormItemContextType; children?: React.ReactNode; } /** * Specifies the result of the [useSchedulerEditSlotPropsContext](https://www.telerik.com/kendo-react-ui/components/scheduler/api/useschedulereditslotpropscontext) and [SchedulerEditSlotPropsContext](https://www.telerik.com/kendo-react-ui/components/scheduler/api/schedulereditslotpropscontext). */ export type SchedulerEditSlotPropsContextType = SchedulerEditSlotProps; /** * A [React Context](https://react.dev/reference/react/hooks#context-hooks) providing access to the [SchedulerEditSlot](https://www.telerik.com/kendo-react-ui/components/scheduler/api/schedulereditslot) `props`. * * For more information, refer to the [Items Context](https://www.telerik.com/kendo-react-ui/components/scheduler/customization/items/state-update) article. */ export declare const SchedulerEditSlotPropsContext: React.Context<SchedulerEditSlotProps>; /** * A custom [React Hook](https://react.dev/reference/react/hooks) providing access to the [SchedulerEditSlot](https://www.telerik.com/kendo-react-ui/components/scheduler/api/schedulereditslot) `props`. * * For more information, refer to the [Items Context](https://www.telerik.com/kendo-react-ui/components/scheduler/customization/items/state-update) article. * * @returns */ export declare const useSchedulerEditSlotPropsContext: () => SchedulerEditSlotPropsContextType; /** * Specifies the result of the [useSchedulerEditSlotFormItemContext](https://www.telerik.com/kendo-react-ui/components/scheduler/api/useschedulereditslotformitemcontext) and [SchedulerEditSlotFormItemContext](https://www.telerik.com/kendo-react-ui/components/scheduler/api/schedulereditslotformitemcontext). */ export type SchedulerEditSlotFormItemContextType = [DataItem | null, (event?: any) => void]; /** * A [React Context](https://react.dev/reference/react/hooks#context-hooks) providing access to the [SchedulerEditSlot](https://www.telerik.com/kendo-react-ui/components/scheduler/api/schedulereditslot) internal `formItem` state. * * For more information, refer to the [Slots Context](https://www.telerik.com/kendo-react-ui/components/scheduler/customization/slots/state-update) article. */ export declare const SchedulerEditSlotFormItemContext: React.Context<SchedulerEditSlotFormItemContextType>; /** * A custom [React Hook](https://react.dev/reference/react/hooks) providing access to the [SchedulerEditSlot](https://www.telerik.com/kendo-react-ui/components/scheduler/api/schedulereditslot) internal `formItem` state. * * For more information, refer to the [Slots Context](https://www.telerik.com/kendo-react-ui/components/scheduler/customization/slots/state-update) article. * * @returns */ export declare const useSchedulerEditSlotFormItemContext: () => SchedulerEditSlotFormItemContextType; /** @hidden */ export declare const SchedulerEditSlotContext: ({ props, form, children }: SchedulerEditSlotContextProps) => React.JSX.Element;