UNPKG

gantt-task-react-v

Version:

Interactive Gantt Chart for React with TypeScript.

45 lines (44 loc) 2.15 kB
import type { MouseEvent, RefObject } from "react"; import React from "react"; import { AllowReorderTask, ChildByLevelMap, Column, DateSetup, DependencyMap, Distances, GanttRenderIconsProps, MapTaskToNestedIndex, OnResizeColumn, Task, RenderTask, TableRenderBottomProps } from "../../types"; export type TaskListProps = { ganttRef: RefObject<HTMLDivElement>; /** Ref to the horizontal scroll wrapper (used for containing popups) */ taskListHorizontalScrollRef?: RefObject<HTMLDivElement>; allowReorderTask?: AllowReorderTask; canReorderTasks?: boolean; canResizeColumns?: boolean; childTasksMap: ChildByLevelMap; columnsProp: readonly Column[]; cutIdsMirror: Readonly<Record<string, true>>; dateSetup: DateSetup; dependencyMap: DependencyMap; distances: Distances; fullRowHeight: number; ganttFullHeight: number; ganttHeight: number; getTaskCurrentState: (task: Task) => Task; handleAddTask: (task: Task | null) => void; handleDeleteTasks: (task: RenderTask[]) => void; handleEditTask: (task: RenderTask) => void; handleMoveTaskBefore: (target: RenderTask, taskForMove: RenderTask) => void; handleMoveTaskAfter: (target: RenderTask, taskForMove: RenderTask) => void; handleMoveTasksInside: (parent: Task, childs: readonly RenderTask[]) => void; handleOpenContextMenu: (task: RenderTask, clientX: number, clientY: number) => void; icons?: Partial<GanttRenderIconsProps>; isShowTaskNumbers?: boolean; mapTaskToNestedIndex: MapTaskToNestedIndex; onClick?: (task: RenderTask) => void; onExpanderClick: (task: Task) => void; scrollToBottomStep: () => void; scrollToTask: (task: Task) => void; scrollToTopStep: () => void; selectTaskOnMouseDown: (taskId: string, event: MouseEvent) => void; selectedIdsMirror: Readonly<Record<string, true>>; taskListContainerRef: RefObject<HTMLDivElement>; taskListRef: RefObject<HTMLDivElement>; tasks: readonly RenderTask[]; onResizeColumn?: OnResizeColumn; tableBottom?: TableRenderBottomProps; }; export declare const TaskList: React.NamedExoticComponent<TaskListProps>;