UNPKG

@progress/kendo-angular-pivotgrid

Version:
35 lines (34 loc) 2.35 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 cell template of the PivotGrid. * Helps to customize the content of the cells. To define the cell template, nest an `<ng-template>` tag with the * `kendoPivotGridCellTemplate` directive inside a `<kendo-pivot-grid>` tag [see example](slug:templates_pivotgrid#toc-cell-template). * * The template context is set to the current cell item and the following additional fields are passed: * - `cellItem`&mdash;The current cell item. Represents the default context that will be assigned to any template variable which utilizes the `let-x` syntax&mdash;for example, `let-cellItem`. * - `columnIndex`&mdash;The current column index. Use it as an alias for a template variable by utilizing the `let-columnIndex="columnIndex"` syntax. * - `rowIndex`&mdash;The current data row index. Use it as an alias for a template variable by utilizing the `let-rowIndex="rowIndex"` syntax. * - `expanded`&mdash;The expanded state of the cell. Use it as an alias for a template variable by utilizing the `let-expanded="expanded"` syntax. * - `tableType`&mdash;The table type. Use it as an alias for a template variable by utilizing the `let-tableType="tableType"` syntax. * - `text`&mdash;The default cell text. Use it as an alias for a template variable by utilizing the `let-text="text"` syntax. * * @example * ```html * <kendo-pivot-grid [data]="data" ...> * <ng-template kendoPivotGridCellTemplate let-cellItem let-rowIndex="rowIndex" let-column="column"> * Row: {{rowIndex}} * </ng-template> * </kendo-pivot-grid> * ``` */ export declare class CellTemplateDirective { templateRef: TemplateRef<any>; constructor(templateRef: TemplateRef<any>); static ɵfac: i0.ɵɵFactoryDeclaration<CellTemplateDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<CellTemplateDirective, "[kendoPivotGridCellTemplate]", never, {}, {}, never, never, true, never>; }