@progress/kendo-react-scheduler
Version:
React Scheduler brings the functionality of Outlook's Calendar to a single UI component. KendoReact Scheduler package
58 lines (57 loc) • 1.89 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 `SchedulerItemResizeItemAction` objects.
*
* The available types are:
* - `RESIZE_ITEM_SET`
* - `RESIZE_ITEM_START`
* - `RESIZE_ITEM_START_DRAG`
* - `RESIZE_ITEM_START_DRAG_SELECTED`
* - `RESIZE_ITEM_END_DRAG`
* - `RESIZE_ITEM_END_DRAG_SELECTED`
* - `RESIZE_ITEM_COMPLETE`
* - `RESIZE_ITEM_COMPLETE_OCCURRENCE`
* - `RESIZE_ITEM_COMPLETE_SERIES`
* - `RESIZE_ITEM_RESET`
*/
export declare enum RESIZE_ITEM_ACTION {
set = "RESIZE_ITEM_SET",
start = "RESIZE_ITEM_START",
startDrag = "RESIZE_ITEM_START_DRAG",
startDragSelected = "RESIZE_ITEM_START_DRAG_SELECTED",
endDrag = "RESIZE_ITEM_END_DRAG",
endDragSelected = "RESIZE_ITEM_END_DRAG_SELECTED",
complete = "RESIZE_ITEM_COMPLETE",
completeOccurrence = "RESIZE_ITEM_COMPLETE_OCCURRENCE",
completeSeries = "RESIZE_ITEM_COMPLETE_SERIES",
reset = "RESIZE_ITEM_RESET"
}
/**
* Represents the object passed to the `resize-item` reducer.
*/
export interface SchedulerItemResizeItemAction {
/**
* The type of resize action to perform.
*/
type: RESIZE_ITEM_ACTION;
/**
* The data item payload for the resize action.
*/
payload?: DataItem;
/**
* The event associated with the resize action.
*/
event?: any;
}
/** @hidden */
export declare const useResizeItem: (config: {
dataItem: DataItem;
onDataAction: any;
}, state: [DataItem, DataItem, any]) => any[];