View as Markdown

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

aggregatesForModelfunction

import { aggregatesForModel } from '@salmonui/data-grid/engine/aggregates';
function aggregatesForModel<Row>(model: RowModelSnapshot<Row>, g: number): AggregateValues | null;

Values of group g (or the totals for -1) as the final row model shows them: with a page-wise scope and a paged view (or a paged ungrouped model), only the page's rows count.