@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.
41 lines (40 loc) • 2.23 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* 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 template directive for customizing the Scheduler edit dialog.
* To define the template, nest an `<ng-template>` tag
* with the `kendoSchedulerEditDialogTemplate` directive inside the `<kendo-scheduler>` tag ([see example](slug:custom_reactive_editing_scheduler)).
*
* The template context is set to the current event and the following additional fields are passed:
* - `event`—The currently edited event. Represents the default context that will be assigned to any template variable which utilizes the `let-x` syntax—for example, `let-event`.
* - `formGroup`—The current [`FormGroup`](https://angular.io/docs/ts/latest/api/forms/index/FormGroup-class.html).
* - `editMode`—The current edit mode.
* - `isNew`—The state of the current event.
*
* @example
* ```html
* <kendo-scheduler>
* <ng-template kendoSchedulerEditDialogTemplate let-formGroup="formGroup" let-isNew="isNew"
* autoFocusedElement=".title-input" let-editMode="editMode" let-event>
* <div>
* <label>Title:</label>
* <kendo-textbox placeholder="Title" [formControl]="formGroup.get('title') />
* </div>
* </ng-template>
* </kendo-scheduler>
* ```
*/
export declare class EditDialogTemplateDirective {
templateRef: TemplateRef<any>;
/**
* Specifies the query selector used to set the initial focus.
*/
autoFocusedElement: string;
constructor(templateRef: TemplateRef<any>);
static ɵfac: i0.ɵɵFactoryDeclaration<EditDialogTemplateDirective, [{ optional: true; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<EditDialogTemplateDirective, "[kendoSchedulerEditDialogTemplate]", never, { "autoFocusedElement": { "alias": "autoFocusedElement"; "required": false; }; }, {}, never, never, true, never>;
}