UNPKG

@progress/kendo-angular-grid

Version:

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

71 lines (70 loc) 2.87 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { EventEmitter, ChangeDetectorRef, ElementRef } from '@angular/core'; import { ColumnInfoService } from '../common/column-info.service'; import { ColumnMenuItemBase } from './column-menu-item-base'; import { SVGIcon } from '@progress/kendo-svg-icons'; import { ContextService } from '../common/provider.service'; import * as i0 from "@angular/core"; /** * Represents the column-menu item for selecting columns in the Grid. [See example](slug:columnmenu_grid#toc-column-chooser-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-chooser` 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-chooser [service]="service"> </kendo-grid-columnmenu-chooser> * </ng-template> * </kendo-grid> * ``` */ export declare class ColumnMenuChooserComponent extends ColumnMenuItemBase { ctx: ContextService; private columnInfoService; private changeDetector; private hostElement; /** * Fires when the content is expanded. */ expand: EventEmitter<any>; /** * Fires when the content is collapsed. */ collapse: EventEmitter<any>; /** * Specifies if the content is expanded. * @default false */ expanded: boolean; /** * @hidden */ isLast: boolean; /** * @hidden */ actionsClass: string; get columns(): any; columnsIcon: SVGIcon; constructor(ctx: ContextService, columnInfoService: ColumnInfoService, changeDetector: ChangeDetectorRef, hostElement: ElementRef); /** * @hidden */ onApply(changed: any[]): void; /** * @hidden */ onCollapse(): void; /** * @hidden */ onExpand(): void; static ɵfac: i0.ɵɵFactoryDeclaration<ColumnMenuChooserComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ColumnMenuChooserComponent, "kendo-grid-columnmenu-chooser", never, { "expanded": { "alias": "expanded"; "required": false; }; "isLast": { "alias": "isLast"; "required": false; }; }, { "expand": "expand"; "collapse": "collapse"; }, never, never, true, never>; }