UNPKG

@progress/kendo-react-gantt

Version:

React Gantt enables the display of self-referencing tabular data with many features. KendoReact Gantt package

54 lines (53 loc) 1.9 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 { GridRowClickEvent } from '@progress/kendo-react-grid'; import { GanttDependency } from '../interfaces/GanttDependency.js'; import { DependencyType } from '../interfaces/DependencyType.js'; import { DataItem } from '../interfaces/DataItem.js'; import * as React from 'react'; export interface GanttEditorPredecessorsProps { /** * The array of predecessor dependencies for the current task. */ predecessors: GanttDependency[]; /** * The flattened array of all tasks in the Gantt. */ flatTasks: DataItem[]; /** * The available dependency types with their display names. */ dependencyTypes: { type: DependencyType; name: string; }[]; /** * The currently selected dependency item in the editor. */ selectedItem: GanttDependency | undefined; /** * Callback function that handles row selection in the dependencies grid. */ onSelectRow: (event: GridRowClickEvent) => void; /** * Callback function that adds a new predecessor dependency. */ addPredecessorsDependency: () => void; /** * Callback function that removes the selected dependency. */ deleteDependency: () => void; /** * Callback function that updates a dependency with new values. */ updateDependency: (dependency: GanttDependency, field: string, newValue: number) => void; } /** * @hidden */ export declare const GanttEditorPredecessors: (props: GanttEditorPredecessorsProps) => React.JSX.Element;