Scheduler Overview
Display appointments by date, navigate day, week and agenda views, and let your application handle event and time selection.
Setup
Import NgbSchedulerComponent into your standalone component. Use the existing Bootstrap setup and ngbootstrap theme styles. No calendar service or additional runtime dependency is required.
import { Component } from '@angular/core';
import { NgbSchedulerComponent, NgbSchedulerEvent } from '@angular-bootstrap/ngbootstrap';
@Component({
standalone: true,
imports: [NgbSchedulerComponent],
template: `<ngb-scheduler [(date)]="date" [events]="events"
timeZone="America/Chicago" label="Appointments" />`,
})
export class Appointments {
date = '2026-12-01';
events: NgbSchedulerEvent[] = [{
id: 'review-1', title: 'Account review',
start: '2026-12-01T15:00:00Z', end: '2026-12-01T16:00:00Z',
}];
}
Day, week and agenda views
The following example demonstrates local event binding, date navigation and selection. Change View to compare the layouts. Day and week position events on a time grid; agenda groups events by date. See Day and Week Views for overlap and business-hours examples.
2026-11-30 – 2026-12-06
Select an appointment to open its details, or choose an empty time slot.
<ngb-scheduler [(date)]="date" [events]="events" view="week"
timeZone="America/Chicago" label="Appointments" [showEventPreview]="true"
(eventActivate)="selectEvent($event)" (slotSelect)="selectSlot($event)" />
Event preview
The following example enables showEventPreview. Activate an appointment to read its complete dates, localized times and description in a modal dialog. Escape or Close dismisses it and returns focus to the appointment. The existing eventActivate output still fires once.
Preview is disabled by default. Applications can also call openEventPreview(event) for a loaded event and closeEventPreview(). Descriptions are plain text. Without a mutationHandler, this dialog remains read-only. See Editing for opt-in edit and delete actions.
Dates and selection
Set date as YYYY-MM-DD. Timed events use ISO timestamps with an explicit offset; all-day events use date-only values. End dates and times are exclusive. Replace event arrays when data changes and keep IDs unique.
eventActivate returns the chosen event. slotSelect returns a civil date, time and timezone—not a reservation or timestamp. Your application must resolve daylight-saving gaps or repeated times and validate availability.
Keyboard and limitations
Use Tab and Shift+Tab between native controls; Enter or Space activates event and time buttons. Accessibility overview covers naming and focus responsibilities.
The default reactive editor and application-owned save/delete handler are covered in Editing. Custom and external forms are covered under Editing. UTC drag editing and typed recurrence examples are available under Editing and Recurring Events. The default editor supports explicit occurrence/series scope when series persistence is configured. See Views for calendar layouts and PDF Export for a downloadable agenda.