UNPKG

@progress/kendo-react-scheduler

Version:

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

72 lines (71 loc) 2.52 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 { ZonedDate } from '@progress/kendo-date-math'; import { Slot } from './Slot'; import { Group } from './Group'; import { Range } from './Range'; import { Occurrence } from './Occurrence'; import { SchedulerItemHandle } from '../items/SchedulerItem.js'; import { SchedulerTaskHandle } from '../tasks/SchedulerTask.js'; /** @hidden */ export interface Item extends Occurrence { /** @hidden */ _ref: React.RefObject<SchedulerItemHandle | SchedulerTaskHandle | null>; /** * Represents the `ref` of the actual `item`. */ itemRef: React.RefObject<SchedulerItemHandle | SchedulerTaskHandle | null>; /** * Represents if the `end` of the item is outside the current visual range. */ head: boolean; /** * Represents if the `start` of the item is outside the current visual range. */ tail: boolean; /** * Represents the order of the item among its siblings. */ order: number | null; /** * Represents the `start` Date in the provided timezone. * * For more information about timezones, refer to the [Scheduler TImezones](https://www.telerik.com/kendo-react-ui/components/scheduler/timezones) article. */ zonedStart: ZonedDate; /** * Represents the `end` Date in the provided timezone. * * For more information about timezones, refer to the [Scheduler TImezones](https://www.telerik.com/kendo-react-ui/components/scheduler/timezones) article. */ zonedEnd: ZonedDate; /** * A collection of all `slots` in which the current item fits. */ slots: Slot[]; /** * Represents the current group in which the item is rendered. */ group: Group; /** * Represents the current range in which the item is rendered. */ range: Range; /** * Represents if the item is an exception to a recurrence rule. */ isException: boolean; /** * Represents if the item is a single occurrence of a recurring `DataItem`. */ isRecurring: boolean; /** * Represents if the item durations is through the whole day. */ isAllDay: boolean; }