/**----------------------------------------------------------------------------------------- * Copyright © 2026 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"; /** * Uses a predicate to control conditional rendering for the * [`DetailTemplateDirective`](https://www.telerik.com/kendo-angular-ui/components/grid/api/detailtemplatedirective). * Allows you to show or hide detail rows based on your logic. ([See example](https://www.telerik.com/kendo-angular-ui/components/grid/master-detail/detail-template#conditional-display)). * * ```typescript * public myCondition(dataItem: any, index: number) { return dataItem.CategoryID % 2 === 0; } * ``` */ export type DetailTemplateShowIfFn = (dataItem: any, index: number) => boolean; /** * Represents the detail template of the Grid ([more information and examples](https://www.telerik.com/kendo-angular-ui/components/grid/master-detail/detail-template)). * Nest an `` tag with the `kendoGridDetailTemplate` directive inside a `` tag to define the detail template. * * @example * ```html * * * * @if (dataItem.Category) { *
*
{{dataItem.Category?.CategoryName}}
* {{dataItem.Category?.Description}} *
* } *
*
* ``` * */ export declare class DetailTemplateDirective { templateRef: TemplateRef; /** * Sets a function to decide if the detail row and the **Expand** or **Collapse** button display for a data item. * The function receives the data item and its index. */ set showIf(fn: DetailTemplateShowIfFn); get showIf(): DetailTemplateShowIfFn; constructor(templateRef: TemplateRef); private _condition; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }