Scheduler Templates
Change what a Scheduler control displays while retaining its navigation, focus and save behavior.
Event, slot and resource labels
The following example demonstrates a grouped schedule with review references on appointments and local times on slots. Select an empty slot, then switch to Agenda to see dated empty messages. The settlements desk has two reviews and the treasury desk has none.
2 resource combinations
Desk: Settlements · Operations
2026-12-03 – 2026-12-03
Desk: Treasury · Operations
2026-12-03 – 2026-12-03
<ng-template ngbSchedulerEventTemplate #eventTitle="ngbSchedulerEventTemplate" let-event>
<strong>{{event.title}}</strong><small>{{event.id}}</small>
</ng-template>
<ng-template ngbSchedulerSlotTemplate #slot="ngbSchedulerSlotTemplate" let-slot let-selected="selected">
<small>{{selected ? 'Selected' : slot.time}}</small>
</ng-template>
<ng-template ngbSchedulerHeaderTemplate #header="ngbSchedulerHeaderTemplate" let-label="label">
Processing day · {{label}}
</ng-template>
<ng-template ngbSchedulerResourceTemplate #resource="ngbSchedulerResourceTemplate" let-name>
{{name}} · Operations
</ng-template>
<ng-template ngbSchedulerEmptyTemplate #empty="ngbSchedulerEmptyTemplate" let-date="date">
No reviews scheduled{{date ? ' for ' + date : ' in this period'}}.
</ng-template>
<ngb-scheduler date="2026-12-03" view="day" [views]="['day','agenda']"
[events]="events()" [resources]="desks" [grouping]="grouping"
[startHour]="9" [endHour]="12" [showAllDay]="false" [showCurrentTime]="false"
[eventTemplate]="eventTitle.template" [slotTemplate]="slot.template" [headerTemplate]="header.template"
[resourceTemplate]="resource.template" [emptyTemplate]="empty.template"
label="Desk reviews" />
Editor fields
Open a review above and choose Edit. Change its title or settlement note and save to update the appointment. Cancel discards the draft. The template receives the Scheduler’s reactive form, so date and resource values survive a title-only change.
<ng-template ngbSchedulerEditorTemplate #editor="ngbSchedulerEditorTemplate" let-form let-event="event">
<p>Review reference {{event.id}}</p>
<label>Review title <input [formControl]="form.controls.title" required></label>
<label>Settlement note <textarea [formControl]="form.controls.description"></textarea></label>
</ng-template>
<ngb-scheduler date="2026-12-03" view="day" [views]="['day','agenda']"
[events]="events()" [resources]="desks" [grouping]="grouping"
[startHour]="9" [endHour]="12" [showAllDay]="false" [showCurrentTime]="false"
[eventTemplate]="eventTitle.template" [slotTemplate]="slot.template" [headerTemplate]="header.template"
[resourceTemplate]="resource.template" [emptyTemplate]="empty.template"
[editorFieldsTemplate]="editor.template" [mutationHandler]="save"
(mutationComplete)="apply($event)" label="Desk reviews" />
Template contexts
- Event supplies the appointment and view for event buttons, including Timeline bars and overflow lists.
- Slot supplies the civil slot and selection state inside a time-grid button.
- Header supplies a date and its localized label in time grids, Agenda, Month and Multi-Week.
- Resource supplies the lane label and assignment keys in grouped views.
- Empty state identifies empty events, hidden dates or missing lanes. Agenda also supplies the empty date. Year displays its date counts and Custom View owns its empty state.
- Editor supplies the form, event and operation. Create and occurrence editing use these fields. Series controls and delete confirmation use the built-in forms.
Import the matching standalone directive for each template. Use text and noninteractive markup inside event and slot buttons. Give custom editor inputs visible labels and leave submission, validation and dismissal to the Scheduler.