# GanttTimeline (@salmonui/gantt)

> The GanttTimeline interface of @salmonui/gantt: timeline.

Canonical: https://salmonui.dev/docs/reference/gantt/GanttTimeline

```ts
import type { GanttTimeline } from '@salmonui/gantt';
```

Entry index: https://salmonui.dev/docs/reference/gantt (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/gantt.md).

## Reference

Kind: interface

```ts
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`.

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `mode` | `readonly mode?: 'hour' \| 'day' \| 'week' \| 'month' \| 'year';` | optional | Tier preset. Default `'week'`. |
| `topTier` | `readonly topTier?: GanttTier \| null;` | optional |  |
| `bottomTier` | `readonly bottomTier?: GanttTier;` | optional |  |
| `unitWidth` | `readonly unitWidth?: number;` | optional | Width of one bottom-tier cell in px (`timelineUnitSize`). Default 33. |
| `weekStart` | `readonly weekStart?: number;` | optional | First day of week (0 = Sunday). Default from `locale`. |
| `renderCell` | `readonly renderCell?: (ctx: GanttTimelineCellContext) => ReactNode;` | optional |  |
| `infinite` | `readonly infinite?: boolean;` | optional | Extends the range when scrolled to an edge (`enableInfiniteTimelineScroll`). |
| `tooltips` | `readonly tooltips?: boolean;` | optional | Tier cell tooltips (the full date). Default true. |
