API reference: @salmonui/gantt
GanttTimelineCellContextinterface
import type { GanttTimelineCellContext } from '@salmonui/gantt';interface GanttTimelineCellContext {
readonly tier: 'top' | 'bottom';
readonly date: Date;
readonly unit: ScaleUnit;
readonly width: number;
readonly text: string;
}
timeline.renderCell / tier render context.
| Name | Signature | Description |
|---|---|---|
tier | readonly tier: 'top' | 'bottom'; | |
date | readonly date: Date; | Cell start as a |
unit | readonly unit: ScaleUnit; | |
width | readonly width: number; | |
text | readonly text: string; |