Slot Selection
Select a continuous time range using a pointer or keyboard.
Range selection
The following example demonstrates selectionMode="range". Drag from an empty time slot to another slot, or select a slot and Shift+click the end. Release to confirm a drag.
2026-12-02 – 2026-12-02
Last emitted range (exclusive end):
<ngb-scheduler [date]="date" view="day" timeZone="UTC"
selectionMode="range" [slotMinutes]="30"
(slotRangeSelect)="selectedRange = $event" />
Keyboard controls
Tab to a slot. Arrow keys move between times and visible days; Home and End move to the first and last visible time. Hold Shift to extend the range. Enter or Space selects one slot. Escape cancels an active drag or clears a confirmed selection.
Range payload
slotRangeSelect emits an NgbSchedulerSlotRange, or null when cleared with Escape or reset by configuration changes. A drag emits once on release; keyboard extensions emit as the range changes. Cancellation restores the previous range.
Limitations
Ranges describe civil dates and times, not bookings. Validate conflicts, hidden days, nonworking hours and daylight-saving transitions in your application. Selection covers every time between its endpoints. Changing the view, hours or inputs resets the highlight. Agenda and all-day rows do not support range selection; dragging near a viewport edge scrolls that viewport at a bounded speed. Release, Escape or pointer cancellation stops scrolling; the page itself does not auto-scroll.
The default selectionMode="single" keeps single-slot selection. On touch devices, range slots use dragging for selection; use the surrounding scroll area to scroll.