UNPKG

@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.33 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { Directive, Optional, TemplateRef } from '@angular/core'; import { PDFExportTemplateDirective } from '@progress/kendo-angular-pdf-export'; import * as i0 from "@angular/core"; /** * Represents the PDF page template of the TreeList. Use this directive to customize the PDF pages. * To define a page template, nest an `<ng-template>` tag with the `kendoTreeListPDFTemplate` directive inside `<kendo-treelist-pdf>`. * * The template context provides the following fields: * - `pageNumber`&mdash;Defines PDF page number. * - `totalPages`&mdash;Defines the total number of PDF pages. * * @example * ```html * <kendo-treelist-pdf fileName="Files.pdf" ...> * <ng-template * kendoTreeListPDFTemplate * let-pageNum="pageNum" * let-totalPages="totalPages"> * <div style="position: absolute; top: 5px; left: 5px;"> * Page {{ pageNum }} of {{ totalPages }} * </div> * </ng-template> * </kendo-treelist-pdf> * ``` */ export class PDFTemplateDirective extends PDFExportTemplateDirective { constructor(templateRef) { super(templateRef); } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PDFTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: PDFTemplateDirective, isStandalone: true, selector: "[kendoTreeListPDFTemplate]", usesInheritance: true, ngImport: i0 }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PDFTemplateDirective, decorators: [{ type: Directive, args: [{ selector: '[kendoTreeListPDFTemplate]', standalone: true }] }], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{ type: Optional }] }] });