# AggregatesMethods (@salmonui/data-grid/engine)

> The AggregatesMethods type of @salmonui/data-grid/engine.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/AggregatesMethods

```ts
import type { AggregatesMethods } from '@salmonui/data-grid/engine';
```

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

Entry index: https://salmonui.dev/docs/reference/data-grid/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine.md).

## Reference

Kind: type

```ts
type AggregatesMethods<Row> = {
    getFooter(ctx: ModuleContext<Row>): AggregateValues;
    format(ctx: ModuleContext<Row>, columnId: ColumnId, type: AggregateType, value: unknown): string;
};
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `getFooter` | `getFooter(ctx: ModuleContext<Row>): AggregateValues;` |  | Footer (grid-level) aggregate values: server totals when the source performed aggregation, else computed. |
| `format` | `format(ctx: ModuleContext<Row>, columnId: ColumnId, type: AggregateType, value: unknown): string;` |  | Formats an aggregate value with the descriptor's `format`, else the column format. |
