@progress/kendo-react-scheduler
Version:
React Scheduler brings the functionality of Outlook's Calendar to a single UI component. KendoReact Scheduler package
52 lines (51 loc) • 1.63 kB
TypeScript
/**
* @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';
/**
* Represents the available `action` types for the `SchedulerItemDragItemAction` objects.
*
* The available types are:
* - `DRAG_ITEM_SET'`
* - `DRAG_ITEM_START'`
* - `DRAG_ITEM_DRAG'`
* - `DRAG_ITEM_COMPLETE'`
* - `DRAG_ITEM_COMPLETE_OCCURRENCE'`
* - `DRAG_ITEM_COMPLETE_SERIES'`
* - `DRAG_ITEM_RESET'`
* - `DRAG_ITEM_DRAG_SELECTED`
*/
export declare enum DRAG_ITEM_ACTION {
set = "DRAG_ITEM_SET",
start = "DRAG_ITEM_START",
drag = "DRAG_ITEM_DRAG",
complete = "DRAG_ITEM_COMPLETE",
completeOccurrence = "DRAG_ITEM_COMPLETE_OCCURRENCE",
completeSeries = "DRAG_ITEM_COMPLETE_SERIES",
reset = "DRAG_ITEM_RESET",
dragSelected = "DRAG_ITEM_DRAG_SELECTED"
}
/**
* Represents the object passed to the `drag-item` reducer.
*/
export interface SchedulerItemDragItemAction {
/**
* The type of drag action to perform.
*/
type: DRAG_ITEM_ACTION;
/**
* The data item payload for the drag action.
*/
payload?: DataItem;
}
/** @hidden */
export declare const useDragItem: (config: {
dataItem: DataItem;
ignoreIsAllDay?: boolean;
isAllDay?: boolean;
onDataAction?: any;
}, state: [DataItem, DataItem, any]) => any[];