@progress/kendo-angular-grid
Version:
Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.
33 lines (32 loc) • 2.12 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";
/**
* Lets you customize the content of edited cells by providing a column edit-cell template for the Grid ([see example](slug:custom_reactive_editing_grid#toc-setting-up-custom-inputs)).
* Place an `<ng-template>` tag with the `kendoGridEditTemplate` directive inside a `<kendo-grid-column>` tag to define the template.
*
* The template context includes:
* - `formGroup`—The current [FormGroup](link:site.data.urls.angular['formgroupapi']). This is the default context for template variables using `let-x`, such as `let-formGroup`. If you use the Grid in [Template-Driven Forms](link:site.data.urls.angular['forms']), this is `undefined`.
* - `rowIndex`—The current data row index. For a new item row, `rowIndex` is `-1`. Use `let-rowIndex="rowIndex"` to access it.
* - `dataItem`—The current data item. Use `let-dataItem="dataItem"` to access it.
* - `column`—The current column instance. Use `let-column="column"` to access it.
* - `isNew`—The state of the current item. Use `let-isNew="isNew"` to access it.
*
* @example
* ```html
* <kendo-grid-column>
* <ng-template kendoGridEditTemplate let-formGroup="formGroup" let-dataItem="dataItem">
* <kendo-textbox [formControl]="formGroup.get('field')"></kendo-textbox>
* </ng-template>
* </kendo-grid-column>
* ```
*/
export declare class EditTemplateDirective {
templateRef: TemplateRef<any>;
constructor(templateRef: TemplateRef<any>);
static ɵfac: i0.ɵɵFactoryDeclaration<EditTemplateDirective, [{ optional: true; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<EditTemplateDirective, "[kendoGridEditTemplate]", never, {}, {}, never, never, true, never>;
}