UNPKG

@progress/kendo-angular-grid

Version:

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

45 lines (44 loc) 2.41 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { OnInit } from '@angular/core'; import { SVGIcon } from '@progress/kendo-svg-icons'; import { ContextService } from '../common/provider.service'; import { ColumnMenuItemBase } from './column-menu-item-base'; import * as i0 from "@angular/core"; /** * Represents the column-menu item for resizing the specified column to the minimum possible width so that it fits the header or cell content without wrapping. * [See example](slug:columnmenu_grid#toc-autosize-column-item). * The component can be placed inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive. * [See example](slug:columnmenu_grid#toc-customizing-the-content). * * You have to set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) and `column` that are passed by * the template to the `service` and `column` input of the `kendo-grid-columnmenu-autosize-column` component. * * @example * ```html * <kendo-grid [columnMenu]="true" ...> * <ng-template kendoGridColumnMenuTemplate let-service="service" let-column="column"> * <kendo-grid-columnmenu-autosize-column [column]="column" [service]="service"> * </kendo-grid-columnmenu-autosize-column> * </ng-template> * </kendo-grid> * ``` */ export declare class ColumnMenuAutoSizeColumnComponent extends ColumnMenuItemBase implements OnInit { ctx: ContextService; /** * The Grid column instance which will be resized through the auto size column option. */ column: any; maxWidthIcon: SVGIcon; constructor(ctx: ContextService); ngOnInit(): void; /** * Resizes a specified column to the minimum possible width so that it fits the widest header or cell content without wrapping. */ autoSizeColumn(): void; static ɵfac: i0.ɵɵFactoryDeclaration<ColumnMenuAutoSizeColumnComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ColumnMenuAutoSizeColumnComponent, "kendo-grid-columnmenu-autosize-column", never, { "column": { "alias": "column"; "required": false; }; }, {}, never, never, true, never>; }