UNPKG

@progress/kendo-angular-gantt

Version:
36 lines (35 loc) 1.92 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 column template for edited cells in the Gantt. * * Use this directive to customize the content of edited cells. To define the cell template, nest an `<ng-template>` * tag with the `kendoGanttEditTemplate` directive inside a `<kendo-gantt-column>` tag. * * The template context provides the following fields: * - `column`&mdash;The current column instance. * - `dataItem`&mdash;The current data item. * - `cellContext`&mdash;An object for passing context information to built-in directives. * - `formGroup`&mdash;The current [`FormGroup`](link:site.data.urls.angular['formgroupapi']). If you use the Gantt inside [Template-Driven Forms](link:site.data.urls.angular['forms']), it is `undefined`. * - `isNew`&mdash;The state of the current item. * - `rowIndex`&mdash;The current row index. If inside a new item row, `rowIndex` is `-1`. * * @example * ```html * <kendo-gantt-column> * <ng-template kendoGanttEditTemplate let-dataItem="dataItem" let-formGroup="formGroup"> * <input [formControl]="formGroup.get('field')" /> * </ng-template> * </kendo-gantt-column> * ``` */ export declare class EditTemplateDirective { templateRef: TemplateRef<any>; constructor(templateRef: TemplateRef<any>); static ɵfac: i0.ɵɵFactoryDeclaration<EditTemplateDirective, [{ optional: true; }]>; static ɵdir: i0.ɵɵDirectiveDeclaration<EditTemplateDirective, "[kendoGanttEditTemplate]", never, {}, {}, never, never, true, never>; }