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

> The AggregateModelSnapshot interface of @salmonui/data-grid/engine: Opaque aggregate results carried by the row model (see ./index.js aggregates).

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

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

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 AggregateModelSnapshot {
    readonly scope: 'page' | 'all';
    readonly read?: (model: RowModelSnapshot<unknown>, g: number) => AggregateValues | null;
    range?(result: AggregateModelSnapshot, owner: object, slot: number, a: number, b: number): AggregateValues;
}
```

Opaque aggregate results carried by the row model (see `./index.js` aggregates).

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `scope` | `readonly scope: 'page' \| 'all';` |  |  |
