View as Markdown

API reference

@salmonui/data-grid/engine/aggregates

21 exported symbols: 8 functions, 3 interfaces, 9 types and 1 constant. Each name links its page with the signature, docs and members. Names re-exported from 2 other entry points are listed there, linked below.

import { … } from '@salmonui/data-grid/engine/aggregates';

Functions

  • aggregatedNumericColumnsNon-string leaf columns the query aggregates (warmed together with the sort/group keys in one row pass).
  • aggregatesForModelValues 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…
  • computeAggregatesFull computation over a row model (grouped when input.groups is set).
  • getAggregateValuesAggregate values of a group (or of the totals for g = -1), cached per result.
  • getRangeAggregateValuesAggregate values over data positions [a, b) (page-wise aggregates of a paged view).
  • isLeafWhether g is a leaf group (deepest level).
  • updateAggregatesIncremental update after updateGroupTree: recomputes the changed leaf groups from their rows and re-combines only their ancestor chains and the totals. Null wh…

Types

Re-exported entry points