@progress/kendo-angular-layout
Version:
Kendo UI for Angular Layout Package - a collection of components to create professional application layoyts
34 lines (33 loc) • 1.98 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* 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";
/**
* Defines a template that specifies the item content of the Drawer.
* To define the template, nest an `<ng-template>` tag with the `kendoDrawerItemTemplate` directive inside the `<kendo-drawer>` tag.
*
* The `let-item` context variable provides access to the item data.
*
* For the Hierarchical Drawer, the `kendoDrawerItemTemplate` directive provides additional context fields:
*
* * `level`—A number that indicates the nesting level of the current item. Use the `let-level="level"` syntax to access the nesting level.
* * `hasChildren`—A boolean that indicates whether the current item has nested items. Use the `let-hasChildren="hasChildren"` syntax to access the value.
* * `isItemExpanded`—A boolean that holds information about the expanded state of the current item, which indicates whether its children are visible or not. Use the `let-isItemExpanded="isItemExpanded"` syntax to access the value of the expanded state.
*
* @example
* ```html
* <kendo-drawer>
* <ng-template kendoDrawerItemTemplate let-item>
* <span class="custom-item">{{ item.text }}</span>
* </ng-template>
* </kendo-drawer>
* ```
*/
export declare class DrawerItemTemplateDirective {
templateRef: TemplateRef<any>;
constructor(templateRef: TemplateRef<any>);
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerItemTemplateDirective, [{ optional: true; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerItemTemplateDirective, "[kendoDrawerItemTemplate]", never, {}, {}, never, never, true, never>;
}