View as Markdown

API reference: @salmonui/gantt

GanttTierinterface

import type { GanttTier } from '@salmonui/gantt';
interface GanttTier {
    readonly unit: ScaleUnit;
    readonly count?: number;
    readonly format?: Intl.DateTimeFormatOptions;
    readonly render?: (ctx: GanttTimelineCellContext) => ReactNode;
}

One timeline tier.

GanttTier members (4)
NameSignatureDescription
unitreadonly unit: ScaleUnit;
countoptionalreadonly count?: number;
formatoptionalreadonly format?: Intl.DateTimeFormatOptions;

Intl.DateTimeFormat options for the cell text.

renderoptionalreadonly render?: (ctx: GanttTimelineCellContext) => ReactNode;