@adaptabletools/adaptable
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
32 lines (31 loc) • 995 B
TypeScript
/**
* Defines which Columns in a Layout display Aggregated values when Row-Grouped
*/
export type AggregationColumnValue = string | true | WeightedAverageAggregation;
/**
* Defines an Aggregated Column in a Table Layout
*/
export type TableAggregationColumns = {
ColumnId: string;
AggFunc: AggregationColumnValue;
}[];
/**
* Defines an Aggregated Column in a Pivot Layout
*/
export type PivotAggregationColumns = TableAggregationColumns;
export declare const WEIGHTED_AVERAGE_AGG_FN_NAME = "weightedAvg";
/**
* Defines a Weighted Average Agg
*/
export interface WeightedAverageAggregation {
/**
* Type is always 'weightedAverage'
*/
type: 'weightedAverage';
/**
* Column which is weighted
*/
weightedColumnId: string;
}
export declare const isWeightedAverageAggFuncName: (aggFunc: string) => boolean;
export declare const isWeightedAverageAggregation: (aggFunc: TableAggregationColumns[0]['AggFunc']) => aggFunc is WeightedAverageAggregation;