@deephaven/js-plugin-ag-grid
Version:
Deephaven AG Grid plugin
23 lines • 1.3 kB
TypeScript
import { Column, ColumnState, GridApi } from 'ag-grid-community';
import type { dh as DhType } from '@deephaven/jsapi-types';
export type AggregatedColumn = {
colId: string;
aggFunc: string;
};
/**
* Checks if the given ColumnState item is an aggregated column.
* @param item ColumnState item to check
* @returns True if the item is an aggregated column, otherwise false.
*/
export declare function isAggregatedColumn(item: ColumnState): item is AggregatedColumn;
export declare function getAggregatedColumns(gridApi: GridApi): AggregatedColumn[];
/**
* Gets the aggregation operation string for the given AG Grid aggregation function.
* @param dh Deephaven API instance to use
* @param agGridAggFunc AG Grid aggregation function to convert
* @returns The corresponding Deephaven aggregation operation string.
*/
export declare function getAggregationOperation(dh: typeof DhType, agGridAggFunc: DhType.AggregationOperationType): string;
export declare function getAggregationOperationMap(dh: typeof DhType, aggregatedColumns: AggregatedColumn[]): Record<DhType.AggregationOperationType, string[]>;
export declare function getRollupConfig(rowGroupColumns: Column[], aggColumns: AggregatedColumn[], dh: typeof DhType): DhType.RollupConfig;
//# sourceMappingURL=AgGridAggUtils.d.ts.map