gantt-task-react-powern
Version:
Interactive Gantt Chart for React with TypeScript.
16 lines (15 loc) • 785 B
TypeScript
/**
* Single source of truth for the left task-list columns: their stable ids and
* default width factors (multiplied by `parseInt(rowWidth)`). Both the header
* and the table read these ids when looking up per-column widths so resizing a
* column keeps the two in sync.
*/
export declare type TaskListColumn = {
id: string;
factor: number;
};
export declare function getTaskListColumns(scheduleType: string, hasCheckbox: boolean): TaskListColumn[];
/** Minimum width (px) a column can be dragged down to. */
export declare const MIN_COLUMN_WIDTH = 40;
/** Build the default width map (px) for the current column set. */
export declare function buildDefaultColumnWidths(scheduleType: string, hasCheckbox: boolean, rowWidth: string): Record<string, number>;