UNPKG

@progress/kendo-angular-scheduler

Version:

Kendo UI Scheduler Angular - Outlook or Google-style angular scheduler calendar. Full-featured and customizable embedded scheduling from the creator developers trust for professional UI components.

40 lines (39 loc) 2.32 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { TemplateRef } from '@angular/core'; import * as i0 from "@angular/core"; /** * Represents the toolbar template of the Scheduler. To define a toolbar template, nest an `<ng-template kendoSchedulerToolbarTemplate>` tag inside the `<kendo-scheduler>`. For more information and examples, see [customizing the toolbar](slug:toolbar_scheduler) article. * * The template context provides the following variables: * * `selectedDate`&mdash;The currently selected date. * * `dateRange`&mdash;The currently selected [`DateRange`](slug:api_scheduler_daterange). * * `views`&mdash;An array of [`SchedulerView`](slug:api_scheduler_schedulerview) instances with the available views. * * `selectedView`&mdash;The currently selected [`SchedulerView`](slug:api_scheduler_schedulerview). * * You can declare either of the following built-in navigation components in the toolbar template: * * `kendoSchedulerToolbarNavigation`&mdash;Renders navigation buttons, a calendar, and a date-range label. * * `kendoSchedulerToolbarViewSelector`&mdash;Renders the buttons for selecting the view. * * To emit navigation events, components inside the toolbar can inject the [`ToolbarService`](slug:api_scheduler_toolbarservice). * * @example * ```html * <kendo-scheduler> * <ng-template kendoSchedulerToolbarTemplate let-selectedDate="selectedDate"> * <div class="custom-toolbar"> * <span>Selected Date: {{ selectedDate | date: 'longDate' }}</span> * <button kendoButton (click)="navigateToToday()">Today</button> * </div> * </ng-template> * </kendo-scheduler> * ``` */ export declare class ToolbarTemplateDirective { templateRef: TemplateRef<any>; constructor(templateRef: TemplateRef<any>); static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarTemplateDirective, [{ optional: true; }]>; static ɵdir: i0.ɵɵDirectiveDeclaration<ToolbarTemplateDirective, "[kendoSchedulerToolbarTemplate]", never, {}, {}, never, never, true, never>; }