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

> The AggregatesOptions interface of @salmonui/data-grid/engine.

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

```ts
import type { AggregatesOptions } 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: interface

```ts
interface AggregatesOptions {
    readonly scope?: AggregateScope;
    readonly custom?: Readonly<Record<string, CustomAggregate>> | ((customId: string) => CustomAggregate | undefined);
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `scope` | `readonly scope?: AggregateScope;` | optional | `page` (default): with paging, footer and group aggregates cover the rows of the current page. `all` (`disablePageWiseAggregates`): they cover every row of the query. |
| `custom` | `readonly custom?: Readonly<Record<string, CustomAggregate>> \| ((customId: string) => CustomAggregate \| undefined);` | optional | Custom aggregates referenced by `customId` in commands (functions are not serializable). |
