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.

UTC

2026-12-02 – 2026-12-02

Wed, Dec 2

All day
08:0008:3009:0009:3010:0010:3011:0011:3012:0012:3013:0013:3014:0014:3015:0015:3016:0016:3017:0017:30

Last emitted range (exclusive end):

null
      <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.