@progress/kendo-angular-gantt
Version:
Kendo UI Angular Gantt
41 lines (40 loc) • 2.09 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, Optional, TemplateRef } from '@angular/core';
import * as i0 from "@angular/core";
/**
* Customizes the column menu content in the Gantt. Place an `<ng-template>` tag with the
* `kendoGanttColumnMenuTemplate` directive inside a `<kendo-gantt-column>` component to define the template.
*
* The template context provides the following fields:
* - `service`—The `ColumnMenuService` instance.
* - `column`—The Gantt column instance.
*
* @example
* ```html
* <kendo-gantt-column>
* <ng-template kendoGanttColumnMenuTemplate let-service="service" let-column="column">
* <button (click)="service.close()">Close Menu</button>
* </ng-template>
* </kendo-gantt-column>
* ```
*/
export class ColumnMenuTemplateDirective {
templateRef;
constructor(templateRef) {
this.templateRef = templateRef;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnMenuTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ColumnMenuTemplateDirective, isStandalone: true, selector: "[kendoGanttColumnMenuTemplate]", ngImport: i0 });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnMenuTemplateDirective, decorators: [{
type: Directive,
args: [{
selector: '[kendoGanttColumnMenuTemplate]',
standalone: true
}]
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
type: Optional
}] }] });