View as Markdown

API reference: @salmonui/data-grid/engine

CustomAggregatetype

import type { CustomAggregate } from '@salmonui/data-grid/engine';

Also exported from @salmonui/data-grid/engine/aggregates.

type CustomAggregate = (rows: readonly unknown[], column: CompiledColumn<unknown>) => unknown;

A custom aggregate (type: 'custom'): receives the group's (or the grid's) rows.