@progress/kendo-angular-grid
Version:
Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.
77 lines (76 loc) • 2.97 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { NgZone, Renderer2, OnDestroy, ChangeDetectorRef } from '@angular/core';
import { PopupService } from '@progress/kendo-angular-popup';
import { ColumnInfoService } from '../common/column-info.service';
import { SVGIcon } from '@progress/kendo-svg-icons';
import { Button } from '@progress/kendo-angular-buttons';
import { ContextService } from '../common/provider.service';
import * as i0 from "@angular/core";
/**
* Represents the component for toggling visibility of the Grid columns visibility. [See example](slug:columnmenu_grid#toc-using-standalone-column-chooser).
* To show and hide the columns without including the column chooser item in the [Column Menu](slug:columnmenu_grid),
* add the component inside the [ToolbarTemplate](slug:toolbartemplate_grid) directive.
*
* @example
* ```html
* <kendo-grid [data]="data">
* <ng-template kendoGridToolbarTemplate>
* <kendo-grid-column-chooser></kendo-grid-column-chooser>
* </ng-template>
* <kendo-grid-column field="ProductID"></kendo-grid-column>
* </kendo-grid>
* ```
*/
export declare class ColumnChooserComponent implements OnDestroy {
ctx: ContextService;
columnInfoService: ColumnInfoService;
private popupService;
private ngZone;
private renderer;
private changeDetector;
/**
* Specifies if the changes in the visibility of the column will be immediately applied.
*
* @default false
*/
autoSync: boolean;
/**
* Specifies if all columns can be hidden.
*
* @default true
*/
allowHideAll: boolean;
private anchor;
private columnList;
get columns(): any[];
columnsIcon: SVGIcon;
popupRef: any;
popupId: string;
private closeClick;
private escapeListener;
constructor(ctx: ContextService, columnInfoService: ColumnInfoService, popupService: PopupService, ngZone: NgZone, renderer: Renderer2, changeDetector: ChangeDetectorRef);
ngOnDestroy(): void;
/**
* @hidden
*/
toggle(anchor: Button, template: any): void;
/**
* @hidden
*/
onApply(changed: any[]): void;
/**
* @hidden
*/
onChange(changed: any[]): void;
/**
* @hidden
*/
onShiftTab(e: Event): void;
private close;
private detachClose;
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnChooserComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnChooserComponent, "kendo-grid-column-chooser", never, { "autoSync": { "alias": "autoSync"; "required": false; }; "allowHideAll": { "alias": "allowHideAll"; "required": false; }; }, {}, never, never, true, never>;
}