# GanttTimelineCellContext (@salmonui/gantt)

> The GanttTimelineCellContext interface of @salmonui/gantt: timeline.renderCell / tier render context.

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

```ts
import type { GanttTimelineCellContext } 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 GanttTimelineCellContext {
    readonly tier: 'top' | 'bottom';
    readonly date: Date;
    readonly unit: ScaleUnit;
    readonly width: number;
    readonly text: string;
}
```

`timeline.renderCell` / tier `render` context.

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `tier` | `readonly tier: 'top' \| 'bottom';` |  |  |
| `date` | `readonly date: Date;` |  | Cell start as a `Date` whose UTC fields are the wall time in `timeZone`. |
| `unit` | `readonly unit: ScaleUnit;` |  |  |
| `width` | `readonly width: number;` |  |  |
| `text` | `readonly text: string;` |  |  |
