@progress/kendo-angular-pivotgrid
Version:
PivotGrid package for Angular
58 lines (57 loc) • 2.41 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, SimpleChanges } from '@angular/core';
import { PivotGridDataService } from './pivotgrid-data.service';
import { Dimension, Measure } from '@progress/kendo-pivotgrid-common';
import { PivotBaseBindingDirective } from './base-binding-directive';
import { PivotGridState } from '../models/configurator-settings';
import * as i0 from "@angular/core";
/**
* Represents a directive that binds the PivotGrid to local data ([see example]({% slug directives_databinding_local_pivotgrid %})).
*
* @example
* ```html
* <kendo-pivotgrid
* [kendoPivotLocalBinding]="data"
* [dimensions]="dimensions"
* [measures]="measures"
* [columnAxes]="columnAxes"
* [rowAxes]="rowAxes"
* [measureAxes]="measureAxes">
* </kendo-pivotgrid>
* ```
*
* @remarks
* Applied to: {@link PivotGridComponent}
*/
export declare class PivotLocalBindingDirective extends PivotBaseBindingDirective {
/**
* Contains the array of data which will be used to populate the PivotGrid.
*/
data: any[];
/**
* Defines the dimensions object of the PivotGrid.
*/
dimensions: {
[key: string]: Dimension;
};
/**
* Contains the measures collection of the PivotGrid.
*/
measures: Measure[];
type: 'local' | 'olap';
constructor(dataService: PivotGridDataService, zone: NgZone);
ngOnChanges(changes: SimpleChanges): void;
/**
* @hidden
*/
fetchChildren(node: any): Promise<any>;
protected loadFields(): void;
protected loadData(state: PivotGridState): void;
private createAxisSettings;
private getRootAxes;
static ɵfac: i0.ɵɵFactoryDeclaration<PivotLocalBindingDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<PivotLocalBindingDirective, "[kendoPivotLocalBinding]", ["kendoPivotLocalBinding"], { "data": { "alias": "kendoPivotLocalBinding"; "required": false; }; "dimensions": { "alias": "dimensions"; "required": false; }; "measures": { "alias": "measures"; "required": false; }; }, {}, never, never, true, never>;
}