@progress/kendo-angular-layout
Version:
Kendo UI for Angular Layout Package - a collection of components to create professional application layoyts
43 lines (42 loc) • 2.2 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";
/**
* Defines the template directive of the PanelBar which helps to customize the item title
* ([more information and example]({% slug templates_panelbar %}#toc-customizing-the-appearance-of-the-title)).
* To define the template, nest an `<ng-template>` tag
* with the `kendoPanelBarItemTitle` directive inside the `<kendo-panelbar-item>` tag.
*
* The `kendoPanelBarItemTitle` directive overrides the PanelBarItem [title]({% slug api_layout_panelbaritemcomponent %}#toc-title) option.
*
* @example
* ```html
* <kendo-panelbar>
* <kendo-panelbar-item [expanded]="true">
* <ng-template kendoPanelBarItemTitle>
* Item Title
* </ng-template>
* </kendo-panelbar-item>
* </kendo-panelbar>
* ```
*/
export class PanelBarItemTitleDirective {
templateRef;
constructor(templateRef) {
this.templateRef = templateRef;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarItemTitleDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: PanelBarItemTitleDirective, isStandalone: true, selector: "[kendoPanelBarItemTitle]", ngImport: i0 });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarItemTitleDirective, decorators: [{
type: Directive,
args: [{
selector: '[kendoPanelBarItemTitle]',
standalone: true
}]
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
type: Optional
}] }]; } });