Scheduler Toolbar

Choose the navigation and view controls that appear above a schedule.

Custom navigation

The following example demonstrates a toolbar with previous and next buttons and a view selector. Move forward one day to see the next settlement review, or choose Review list to see the week’s appointments.

2026-12-03

2026-12-03 – 2026-12-03

Thu, Dec 3

All day
09:0010:0011:0012:00

      <ng-template ngbSchedulerToolbar #tools="ngbSchedulerToolbar" let-schedule>
  <div class="d-flex flex-wrap align-items-center gap-2" role="group" aria-label="Review schedule">
    <button type="button" class="btn btn-outline-primary" (click)="schedule.navigate(-1)">Previous</button>
    <button type="button" class="btn btn-outline-primary" (click)="schedule.navigate(1)">Next</button>
    <span aria-live="polite">{{schedule.displayedDate}}</span>
    <label>View
      <select #view class="form-select" (change)="schedule.chooseView(view.value)">
        @for (option of schedule.configuredViews; track option.type) {
          <option [value]="option.type" [selected]="option.type === schedule.displayedView">{{schedule.viewLabel(option)}}</option>
        }
      </select>
    </label>
  </div>
</ng-template>
<ngb-scheduler date="2026-12-03" view="day" [events]="events" [toolbarTemplate]="tools.template">
  <ng-template ngbSchedulerView="day" label="Settlement day" [options]="{startTime:'09:00', endTime:'13:00'}" />
  <ng-template ngbSchedulerView="agenda" label="Review list" />
</ngb-scheduler>
    

Connect the controls

Import the Scheduler and both standalone directives. Bind the toolbar template to toolbarTemplate. Its context provides the current date, active view and navigation methods. Read these values directly so the toolbar stays in sync after a date or view change.

Use labeled native controls for keyboard navigation. For a Today button, disable it until ready() returns true. Omit the template for the default toolbar or set [showToolbar]="false" to hide either toolbar.

See declarative views for ordering, options and fallback behavior.