View as Markdown

API reference: @salmonui/scheduler

SchedulerCellContextinterface

import type { SchedulerCellContext } from '@salmonui/scheduler';
interface SchedulerCellContext {
    readonly part: SchedulerCellPart;
    readonly date: PlainDate;
    readonly start: Date;
    readonly end: Date;
    readonly view: SchedulerViewType;
    readonly work: boolean;
    readonly resource?: SchedulerResourceInfo | undefined;
}
SchedulerCellContext members (7)
NameSignatureDescription
partreadonly part: SchedulerCellPart;
datereadonly date: PlainDate;
startreadonly start: Date;

Start and end of the cell (instants).

endreadonly end: Date;
viewreadonly view: SchedulerViewType;
workreadonly work: boolean;

Inside work hours (work cells) or a work day.

resourceoptionalreadonly resource?: SchedulerResourceInfo | undefined;

The resource of the cell in grouped views (the innermost level).