View as Markdown

API reference: @salmonui/scheduler

SchedulerEventLayoutinterface

import type { SchedulerEventLayout } from '@salmonui/scheduler';
interface SchedulerEventLayout {
    readonly spannedPlacement?: 'allDayRow' | 'timeSlot';
    readonly maxHeight?: number;
    readonly moreIndicator?: boolean;
    readonly minimumDuration?: number;
    readonly ignoreWhitespace?: boolean;
}
SchedulerEventLayout members (5)
NameSignatureDescription
spannedPlacementoptionalreadonly spannedPlacement?: 'allDayRow' | 'timeSlot';

Timed events that cross midnight: the all-day row (default) or split into the time slots.

maxHeightoptionalreadonly maxHeight?: number;

Lanes of stacked events per month cell (and the all-day row) before "+N more" (default 3 / all).

moreIndicatoroptionalreadonly moreIndicator?: boolean;

Show the "+N more" part (default true).

minimumDurationoptionalreadonly minimumDuration?: number;

Day views: events shorter than this render this tall, in minutes (default 0).

ignoreWhitespaceoptionalreadonly ignoreWhitespace?: boolean;

Month view: lanes take only the rows they need (no blank space left by hidden lanes).