Type alias AggregateSpecMap<T>

AggregateSpecMap<T>: Record<string, AggregateSpec<T>>

Several aggregates by key. In aggregateColumns the key names the result (and is the default property path); in a footer (AreaModelAggregateFooter) the key is the property of the column that shows the result.

Type Parameters

  • T = any

Example

const specs: AggregateSpecMap<Order> = {
quantity: "sum",
total: "sum",
customer: "countDistinct",
avgTotal: { aggregator: "avg", value: "total" } // a key without a column: only in the results
};

Since

1.1.94