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;
}
| Name | Signature | Description |
|---|---|---|
part | readonly part: SchedulerCellPart; | |
date | readonly date: PlainDate; | |
start | readonly start: Date; | Start and end of the cell (instants). |
end | readonly end: Date; | |
view | readonly view: SchedulerViewType; | |
work | readonly work: boolean; | Inside work hours (work cells) or a work day. |
resourceoptional | readonly resource?: SchedulerResourceInfo | undefined; | The resource of the cell in grouped views (the innermost level). |