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.

43 lines (42 loc) 2.16 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { Directive, TemplateRef, Optional } from '@angular/core'; import * as i0 from "@angular/core"; /** * Use this directive to customize the rendering of Scheduler events. * * To define an event template, nest an `<ng-template>` tag with the `kendoSchedulerEventTemplate` directive inside the * `<kendo-scheduler>` or any view component ([see example](slug:templates_scheduler#toc-event-rendering)). * * The available fields in the template context are: * - `event`&mdash;The event that is associated with the item. * - `resources`&mdash;The resources of the event. * * @example * ```html * <kendo-scheduler> * <ng-template kendoSchedulerEventTemplate let-event="event" let-resources="resources"> * <!-- custom event rendering --> * </ng-template> * </kendo-scheduler> * ``` */ export class EventTemplateDirective { templateRef; constructor(templateRef) { this.templateRef = templateRef; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EventTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: EventTemplateDirective, isStandalone: true, selector: "[kendoSchedulerEventTemplate]", ngImport: i0 }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EventTemplateDirective, decorators: [{ type: Directive, args: [{ selector: '[kendoSchedulerEventTemplate]', standalone: true }] }], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{ type: Optional }] }] });