API reference: @salmonui/data-grid/engine
AggregateModelSnapshotinterface
import type { AggregateModelSnapshot } from '@salmonui/data-grid/engine';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).
| Name | Signature | Description |
|---|---|---|
scope | readonly scope: 'page' | 'all'; |