View as Markdown

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.

GanttTimelineCellContext members (5)
NameSignatureDescription
tierreadonly tier: 'top' | 'bottom';
datereadonly date: Date;

Cell start as a Date whose UTC fields are the wall time in timeZone.

unitreadonly unit: ScaleUnit;
widthreadonly width: number;
textreadonly text: string;