Resources and Grouping
Arrange appointments by staff, rooms or other application-owned resources.
Resource grouping
The following example demonstrates named resource lanes, multiple staff assignments and optional room subdivisions. Switch orientation to arrange lanes side by side or vertically. Activate an appointment to open its details and named assignments. Empty lanes remain visible; missing assignments appear under Unassigned / unknown.
6 resource combinations
Advisor: Maya Chen
2026-12-02 – 2026-12-02
Advisor: Owen Patel
2026-12-02 – 2026-12-02
Advisor: Leah Brooks
2026-12-02 – 2026-12-02
Advisor: Amir Reed
2026-12-02 – 2026-12-02
Selected event: None
resources: readonly NgbSchedulerResource[] = [
{ key: 'staff', label: 'Advisor', items: [
{ id: 'maya', label: 'Maya Chen' }, { id: 'owen', label: 'Owen Patel' }
] }
];
grouping: NgbSchedulerGrouping = { resources: ['staff'], orientation: 'horizontal' };
// Event assignment: resources: { staff: ['maya', 'owen'] }
// <ngb-scheduler [date]="date" [events]="events"
// [resources]="resources" [grouping]="grouping" />
Assignments and identity
Define resources with stable keys and item IDs. Assign events with arrays of IDs in event.resources. An event assigned to several items appears in each matching lane. Activation emits the original event once; slot selections include the lane's resource IDs. A null ID identifies the fallback lane.
Data ownership and limits
The Scheduler loads a date range once and groups that result locally. Changing grouping reuses loaded data. Your application owns availability, capacity checks and persistence. Filter resource definitions before rendering large schedules: grouping accepts up to 100 combinations and displays four lanes per page.
Available in: Day, Multi-Day, Week, Work Week and Agenda. Each lane retains its own scroll position and keyboard entry point. Tab moves between lanes; arrow keys remain inside a lane. With editing enabled, a drop onto another lane can reassign the appointment. Lane scrolling is independent. The default editor preserves existing resource assignments.