@progress/kendo-angular-gantt
Version:
Kendo UI Angular Gantt
36 lines (35 loc) • 1.57 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 for the text content section of the task component.
* Place an `<ng-template>` tag with the `kendoGanttTaskContentTemplate` directive inside the `<kendo-gantt>` tag to set the template.
*
* The template context uses the current data item.
*
* @example
* ```ts-preview
* _@Component({
* selector: 'my-app',
* template: `
* <kendo-gantt [kendoGanttHierarchyBinding]="data">
* <ng-template kendoGanttTaskContentTemplate let-dataItem>
* {{ dataItem.title }} - {{ dataItem.completionRatio * 100 }}% complete
* </ng-template>
* </kendo-gantt>
* `
* })
* class AppComponent {
* public data: any[] = sampleTasks;
* }
* ```
*/
export declare class GanttTaskContentTemplateDirective {
templateRef: TemplateRef<any>;
constructor(templateRef: TemplateRef<any>);
static ɵfac: i0.ɵɵFactoryDeclaration<GanttTaskContentTemplateDirective, [{ optional: true; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<GanttTaskContentTemplateDirective, "[kendoGanttTaskContentTemplate]", never, {}, {}, never, never, true, never>;
}