@progress/kendo-angular-layout
Version:
Kendo UI for Angular Layout Package - a collection of components to create professional application layoyts
52 lines (51 loc) • 2.18 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 } from '@angular/core';
import * as i0 from "@angular/core";
/**
* Represents the content template of the Kendo UI TabStrip.
* To define the template, nest a `<ng-template>` tag with the `kendoTabContent` inside the component tag.
*
* @example
* ```ts-preview
*
* _@Component({
* selector: 'my-app',
* template: `
* <kendo-tabstrip [ngStyle]="{'width': '400px'}" [animate]="true">
* <kendo-tabstrip-tab title="Paris" [selected]="true">
* <ng-template kendoTabContent>
* <h3>Content 1</h3>
* </ng-template>
* </kendo-tabstrip-tab>
*
* <kendo-tabstrip-tab title="Sofia">
* <ng-template kendoTabContent>
* <h3>Content 2</h3>
* </ng-template>
* </kendo-tabstrip-tab>
* </kendo-tabstrip>
* `
* })
*
* class AppComponent {}
*
* ```
*/
export class TabContentDirective {
templateRef;
constructor(templateRef) {
this.templateRef = templateRef;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TabContentDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TabContentDirective, isStandalone: true, selector: "[kendoTabContent]", ngImport: i0 });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TabContentDirective, decorators: [{
type: Directive,
args: [{
selector: '[kendoTabContent]',
standalone: true
}]
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });