UNPKG

@progress/kendo-angular-gantt

Version:
31 lines (30 loc) 1.64 kB
/**----------------------------------------------------------------------------------------- * 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 entire task component. * Place an `<ng-template>` tag with the `kendoGanttTaskTemplate` directive inside the `<kendo-gantt>` tag to set the template. * * The template context uses the current data item. The following field is also available: * - `elementWidth`&mdash;The calculated width in pixels of the current task wrapper element, based on its start and end date. * Use `let-elementWidth="elementWidth"` to access it in the template. * This helps you render custom elements for task progress. * * @example * ```html * <kendo-gantt [kendoGanttHierarchyBinding]="data"> * <ng-template kendoGanttTaskTemplate let-dataItem let-elementWidth="elementWidth"> * {{ dataItem.title }} - {{ dataItem.completionRatio * 100 }}% complete * </ng-template> * </kendo-gantt> * ``` */ export declare class GanttTaskTemplateDirective { templateRef: TemplateRef<any>; constructor(templateRef: TemplateRef<any>); static ɵfac: i0.ɵɵFactoryDeclaration<GanttTaskTemplateDirective, [{ optional: true; }]>; static ɵdir: i0.ɵɵDirectiveDeclaration<GanttTaskTemplateDirective, "[kendoGanttTaskTemplate]", never, {}, {}, never, never, true, never>; }