本页还没有译文
本页 28 段还没译成한국어,下面显示的是英文原文。ColumnDef_RowAggregation
还没翻译译自英文(tanstack.com)本页 28 段都还没译
Defined in: features/row-aggregation/rowAggregationFeature.types.ts:219
Column-definition options installed by rowAggregationFeature.
Type Parameters
TFeatures
TFeatures extends TableFeatures
TData
TData extends RowData
TValue
TValue extends CellData = CellData
Properties
aggregatedCell?
optional aggregatedCell?: ColumnDefTemplate<ReturnType<Cell<TFeatures, TData, TValue>["getContext"]>>;Defined in: features/row-aggregation/rowAggregationFeature.types.ts:225
Renderer used for a grouped row's aggregated cell.
aggregationFn?
optional aggregationFn?: AggregationFnOption<TFeatures, TData, TValue>;Defined in: features/row-aggregation/rowAggregationFeature.types.ts:232
One aggregation reference for a scalar result, or an array for a keyed
result object. Inline definitions in an array require an explicit id.
getAggregationValue?
optional getAggregationValue?: (context) =>
| AggregationValueResult<unknown>
| undefined;Defined in: features/row-aggregation/rowAggregationFeature.types.ts:244
Optionally supplies a precomputed aggregation value for this column.
Return { value } to handle the request, including { value: undefined };
return undefined to use the local aggregation fallback.
Parameters
context
AggregationValueContext<TFeatures, TData, TValue>
Returns
| AggregationValueResult<unknown>
| undefined
maxAggregationDepth?
optional maxAggregationDepth?: number;Defined in: features/row-aggregation/rowAggregationFeature.types.ts:238
Maximum relative sub-row depth used for grouped aggregation and cached
default totals. 0 selects the supplied root rows, 1 their direct
sub-rows, and so on. Defaults to 0.