@progress/kendo-angular-grid
Version:
Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.
63 lines (62 loc) • 2.58 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 { OnDestroy, AfterContentChecked, OnChanges, EventEmitter, NgZone, Renderer2, ElementRef } from '@angular/core';
import { SelectionService } from './selection.service';
import { SelectAllCheckboxState } from './types';
import { CellSelectionService } from './cell-selection.service';
import { CheckBoxComponent } from '@progress/kendo-angular-inputs';
import * as i0 from "@angular/core";
/**
* Represents the select-all checkbox feature of the Grid ([see example](slug:grid_selection_persistence#toc-selecting-all-items)).
*
* @example
* ```html
* <input
* type="checkbox"
* kendoCheckBox
* kendoGridSelectAllCheckbox
* [state]="selectAllState"
* (selectAllChange)="onSelectAllChange($event)"
* />
* ```
*/
export declare class SelectAllCheckboxDirective implements AfterContentChecked, OnDestroy, OnChanges {
private selectionService;
private cellSelectionService;
private ngZone;
private element;
private renderer;
private checkbox;
/**
* Explicitly overrides the state of the select-all checkbox.
*/
state: SelectAllCheckboxState;
/**
* Fires when the user clicks the `kendoGridSelectAllCheckbox` select-all checkbox
* ([see example](slug:grid_row_selection#toc-select-all-checkbox)).
*/
selectAllChange: EventEmitter<SelectAllCheckboxState>;
private destroyClick;
private checkboxChange;
private stateSet;
ngAfterContentChecked(): void;
ngOnChanges(): void;
constructor(selectionService: SelectionService, cellSelectionService: CellSelectionService, ngZone: NgZone, element: ElementRef, renderer: Renderer2, checkbox: CheckBoxComponent);
ngOnDestroy(): void;
/**
* @hidden
*/
onClick(): void;
/**
* @hidden
*/
private setState;
/**
* @hidden
*/
private stateToBool;
static ɵfac: i0.ɵɵFactoryDeclaration<SelectAllCheckboxDirective, [null, null, null, null, null, { optional: true; host: true; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectAllCheckboxDirective, "[kendoGridSelectAllCheckbox]", never, { "state": { "alias": "state"; "required": false; }; }, { "selectAllChange": "selectAllChange"; }, never, never, true, never>;
}