UNPKG

@progress/kendo-angular-treeview

Version:
35 lines (34 loc) 1.66 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 template for TreeView nodes ([more information and example](slug:nodetemplate_treeview)). * * Use this template to customize the content of the nodes. To define the node template, nest an `<ng-template>` * tag with the `kendoTreeViewNodeTemplate` directive inside a `<kendo-treeview>` tag. * * The template context provides the node data item and its hierarchical index as variables: * * - `let-dataItem`&mdash;The data item for the current node. * - `let-index="index"`&mdash;The hierarchical index of the current node. * * @example * ```html * <kendo-treeview> * <ng-template kendoTreeViewNodeTemplate let-dataItem let-index="index"> * <span [style.fontWeight]="dataItem.items ? 'bolder': 'normal' "> * {{ index }}: {{ dataItem.text }} * </span> * </ng-template> * </kendo-treeview> * ``` */ export declare class NodeTemplateDirective { templateRef: TemplateRef<any>; constructor(templateRef: TemplateRef<any>); static ɵfac: i0.ɵɵFactoryDeclaration<NodeTemplateDirective, [{ optional: true; }]>; static ɵdir: i0.ɵɵDirectiveDeclaration<NodeTemplateDirective, "[kendoTreeViewNodeTemplate]", never, {}, {}, never, never, true, never>; }