UNPKG

@progress/kendo-angular-grid

Version:

Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.

39 lines (38 loc) 2.08 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"; /** * Represents the template for the column menu in the Grid. Provides an option for * customizing the content of the column menu for all or for specific columns. * To define the content template, nest an `<ng-template>` tag with the * `kendoGridColumnMenuTemplate` directive inside the `<kendo-grid>` or the `<kendo-grid-column>` component. * * The template context is passes through the following fields: * - `service`&mdash;Represents the [ColumnMenuService]({% slug api_grid_columnmenuservice %}). * - `column`&mdash;Represents the Grid column. * * @example * ```html * <kendo-grid [kendoGridBinding]="data" [sortable]="true" [columnMenu]="true"> * <ng-template kendoGridColumnMenuTemplate let-service="service"> * <kendo-grid-columnmenu-sort [service]="service"></kendo-grid-columnmenu-sort> * </ng-template> * <kendo-grid-column field="Field1"> * <ng-template kendoGridColumnMenuTemplate let-service="service"> * <kendo-grid-columnmenu-lock [service]="service"></kendo-grid-columnmenu-lock> * <kendo-grid-columnmenu-sort [service]="service"></kendo-grid-columnmenu-sort> * </ng-template> * </kendo-grid-column> * <kendo-grid-column field="Field2"></kendo-grid-column> * </kendo-grid> * ``` */ export declare class ColumnMenuTemplateDirective { templateRef: TemplateRef<any>; constructor(templateRef: TemplateRef<any>); static ɵfac: i0.ɵɵFactoryDeclaration<ColumnMenuTemplateDirective, [{ optional: true; }]>; static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnMenuTemplateDirective, "[kendoGridColumnMenuTemplate]", never, {}, {}, never, never, true, never>; }