UNPKG

@progress/kendo-angular-gantt

Version:
38 lines (37 loc) 1.66 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 tooltip. * Place an `<ng-template>` tag with the `kendoGanttTaskTooltipTemplate` directive inside the `<kendo-gantt>` tag to set the template. * * The template context uses the related data item. * * @example * ```ts-preview * _@Component({ * selector: 'my-app', * template: ` * <kendo-gantt [kendoGanttHierarchyBinding]="data"> * <ng-template kendoGanttTaskTooltipTemplate let-dataItem> * <div [style]="'color: white; font-size: 8px;'"> * {{ dataItem.title }} - {{ dataItem.completionRatio * 100 }}% complete; * </div> * </ng-template> * </kendo-gantt> * ` * }) * class AppComponent { * public data: any[] = sampleTasks; * } * ``` */ export declare class GanttTaskTooltipTemplateDirective { templateRef: TemplateRef<any>; constructor(templateRef: TemplateRef<any>); static ɵfac: i0.ɵɵFactoryDeclaration<GanttTaskTooltipTemplateDirective, [{ optional: true; }]>; static ɵdir: i0.ɵɵDirectiveDeclaration<GanttTaskTooltipTemplateDirective, "[kendoGanttTaskTooltipTemplate]", never, {}, {}, never, never, true, never>; }