TanStack

Column_RowAggregation

Interface: Column_RowAggregation<TFeatures, TData>

Defined in: features/row-aggregation/rowAggregationFeature.types.ts:264

Column instance APIs installed by rowAggregationFeature.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Properties

getAggregationFns()

ts
getAggregationFns: () => readonly ResolvedAggregationFn<TFeatures, TData>[];

Defined in: features/row-aggregation/rowAggregationFeature.types.ts:269

Resolves the configured scalar or multiple aggregation definitions.

Returns

readonly ResolvedAggregationFn<TFeatures, TData>[]


getAggregationValue()

ts
getAggregationValue: <TResult>(options?) => TResult;

Defined in: features/row-aggregation/rowAggregationFeature.types.ts:277

Aggregates this column over the default pre-grouped row model, or over a caller-provided array of rows. options.maxDepth overrides the column's maxAggregationDepth. Explicit-row calls are intentionally not cached.

Type Parameters

TResult

TResult = ColumnAggregationValue<TFeatures>

Parameters

options?

AggregationValueOptions<TFeatures, TData>

Returns

TResult


getAutoAggregationFn()

ts
getAutoAggregationFn: () =>
  | AggregationFnDef<TFeatures, TData, any, any>
  | undefined;

Defined in: features/row-aggregation/rowAggregationFeature.types.ts:281

Infers sum for a numeric first row and extent for a Date first row.

Returns

| AggregationFnDef<TFeatures, TData, any, any> | undefined