View as Markdown

API reference: @salmonui/data-grid/engine/aggregates

computeAggregatesfunction

import { computeAggregates } from '@salmonui/data-grid/engine/aggregates';
function computeAggregates<Row>(input: RowModelSnapshot<Row>, descriptors: readonly AggregateDescriptor[], columns: ColumnSnapshot<Row>, scope: AggregateScope, locale: string): AggregateResult;

Full computation over a row model (grouped when input.groups is set).