API reference: @salmonui/gantt
GanttTimelineinterface
import type { GanttTimeline } from '@salmonui/gantt';interface GanttTimeline {
readonly mode?: 'hour' | 'day' | 'week' | 'month' | 'year';
readonly topTier?: GanttTier | null;
readonly bottomTier?: GanttTier;
readonly unitWidth?: number;
readonly weekStart?: number;
readonly renderCell?: (ctx: GanttTimelineCellContext) => ReactNode;
readonly infinite?: boolean;
readonly tooltips?: boolean;
}
timeline.
| Name | Signature | Description |
|---|---|---|
modeoptional | readonly mode?: 'hour' | 'day' | 'week' | 'month' | 'year'; | Tier preset. Default |
topTieroptional | readonly topTier?: GanttTier | null; | |
bottomTieroptional | readonly bottomTier?: GanttTier; | |
unitWidthoptional | readonly unitWidth?: number; | Width of one bottom-tier cell in px ( |
weekStartoptional | readonly weekStart?: number; | First day of week (0 = Sunday). Default from |
renderCelloptional | readonly renderCell?: (ctx: GanttTimelineCellContext) => ReactNode; | |
infiniteoptional | readonly infinite?: boolean; | Extends the range when scrolled to an edge ( |
tooltipsoptional | readonly tooltips?: boolean; | Tier cell tooltips (the full date). Default true. |