UNPKG

@progress/kendo-react-scheduler

Version:

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

66 lines (65 loc) 2.16 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ /** * An action which indicates that the current view will switch to the next period * ([more information and examples](https://www.telerik.com/kendo-react-ui/components/scheduler/customization/header-footer)). * * ```ts-no-run * const action = { * type: 'next' * } * ``` */ /** @hidden */ export interface Next { /** @hidden */ type: 'next'; } /** * An action which indicates that the current view will switch to the previous period * ([more information](https://www.telerik.com/kendo-react-ui/components/scheduler/navigation)). * * ```ts-no-run * const action = { * type: 'prev' * } * ``` */ /** @hidden */ export interface Prev { /** @hidden */ type: 'prev'; } /** * An action which indicates that the current view will switch to today's date * ([more information](https://www.telerik.com/kendo-react-ui/components/scheduler/navigation)). * * ```ts-no-run * const action = { * type: 'today' * } * ``` */ /** @hidden */ export interface Today { /** @hidden */ type: 'today'; } /** * A discriminated union of supported navigation actions * ([more information and examples](https://www.telerik.com/kendo-react-ui/components/scheduler/customization/header-footer)). * * The available types are: * * [`Next`](https://www.telerik.com/kendo-react-ui/components/scheduler/navigation) * * [`Prev`](https://www.telerik.com/kendo-react-ui/components/scheduler/navigation) * * [`SelectDate`](https://www.telerik.com/kendo-react-ui/components/scheduler/date-selection) * * [`Today`](https://www.telerik.com/kendo-react-ui/components/scheduler/navigation) * * [`ViewChange`](https://www.telerik.com/kendo-react-ui/components/scheduler/api/schedulerviewchangeevent) */ /** @hidden */ export type NavigationAction = Next | Prev | Today;