View as Markdown

API reference: @salmonui/scheduler

SchedulerGroupinginterface

import type { SchedulerGrouping } from '@salmonui/scheduler';
interface SchedulerGrouping {
    readonly resources: readonly string[];
    readonly byDate?: boolean;
    readonly byParent?: boolean;
    readonly sharedEvents?: boolean;
    readonly hideNonWorkingDays?: boolean;
}

Resource grouping.

SchedulerGrouping members (5)
NameSignatureDescription
resourcesreadonly resources: readonly string[];

Resource names, outermost first: one header row (vertical views) or tree level (timeline views) each.

byDateoptionalreadonly byDate?: boolean;

Dates above resources in day, week and month views.

byParentoptionalreadonly byParent?: boolean;

Default true: children only under the parent their parentIdField names; false puts every child under every parent.

sharedEventsoptionalreadonly sharedEvents?: boolean;

An event with several ids is one event in each of its resources: selecting one copy selects every copy.

hideNonWorkingDaysoptionalreadonly hideNonWorkingDays?: boolean;

Each resource shows only its own work days (workDaysField) in day, week and work week views.