UNPKG

@progress/kendo-angular-grid

Version:

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

40 lines (39 loc) 2.25 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 all columns to the minimum possible width so that they fit the widest header or cell content without wrapping. * [See example](slug:columnmenu_grid#toc-autosize-all-columns-item). * * The component can be placed inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive. * To register the component as a known column menu item, set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that is passed by * the template to the `service` input of the `kendo-grid-columnmenu-autosize-all-columns` component. [See example](slug:columnmenu_grid#toc-customizing-the-content). * * @example * ```html * <kendo-grid [columnMenu]="true" ...> * <ng-template kendoGridColumnMenuTemplate let-service="service"> * <kendo-grid-columnmenu-autosize-all-columns [service]="service"> * </kendo-grid-columnmenu-autosize-all-columns> * </ng-template> * </kendo-grid> * ``` */ export declare class ColumnMenuAutoSizeAllColumnsComponent extends ColumnMenuItemBase implements OnInit { ctx: ContextService; displayInlineFlexIcon: SVGIcon; constructor(ctx: ContextService); ngOnInit(): void; /** * Resizes all columns to the minimum possible width so that they fit the widest header or cell content without wrapping. */ autoSizeAllColumns(): void; static ɵfac: i0.ɵɵFactoryDeclaration<ColumnMenuAutoSizeAllColumnsComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ColumnMenuAutoSizeAllColumnsComponent, "kendo-grid-columnmenu-autosize-all-columns", never, {}, {}, never, never, true, never>; }