@progress/kendo-angular-treelist
Version:
Kendo UI TreeList for Angular - Display hierarchical data in an Angular tree grid view that supports sorting, filtering, paging, and much more.
46 lines (45 loc) • 2.58 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* 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";
/**
* Represents the column footer cell template of the TreeList ([more information and example]({% slug templates_columns_treelist %}#toc-footer-template)).
* Use this directive to customize the table footer cell for the column.
* To define a footer template, nest an `<ng-template>` tag with the `kendoTreeListFooterTemplate` directive inside the `<kendo-treelist-column>` tag.
*
* The template context is set to the aggregate values and provides the following fields:
* - `aggregates`—The aggregates for the level items.
* - `column`—Defines an instance of the [`ColumnComponent`]({% slug api_treelist_columncomponent %}) option.
* - `columnIndex`—Defines the current column index.
* - `field`—The name of the column field, if set.
* - `items`—The data items on this level.
* - `parentItem`—The parent data item; `null` for root level items.
*
* @example
* ```html
* <kendo-treelist-column field="name">
* <ng-template kendoTreeListFooterTemplate let-aggregates="aggregates">
* {{ aggregates.name.count }}
* </ng-template>
* </kendo-treelist-column>
* ```
*/
export class FooterTemplateDirective {
templateRef;
constructor(templateRef) {
this.templateRef = templateRef;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FooterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: FooterTemplateDirective, isStandalone: true, selector: "[kendoTreeListFooterTemplate]", ngImport: i0 });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FooterTemplateDirective, decorators: [{
type: Directive,
args: [{
selector: '[kendoTreeListFooterTemplate]',
standalone: true
}]
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
type: Optional
}] }] });