View as Markdown

API reference: @salmonui/data-grid/engine

DataStatusSnapshotinterface

import type { DataStatusSnapshot } from '@salmonui/data-grid/engine';
interface DataStatusSnapshot {
    readonly status: 'idle' | 'loading' | 'ready' | 'error';
    readonly error: unknown;
    readonly totalRowCount: number;
    readonly version: number;
    readonly mode: DataSourceMode;
    readonly performed: readonly PerformedStage[];
    readonly aggregates: AggregateValues | null;
}
DataStatusSnapshot members (7)
NameSignatureDescription
statusreadonly status: 'idle' | 'loading' | 'ready' | 'error';
errorreadonly error: unknown;
totalRowCountreadonly totalRowCount: number;
versionreadonly version: number;

Version of the request that produced the current rows; 0 before the first result.

modereadonly mode: DataSourceMode;
performedreadonly performed: readonly PerformedStage[];

Stages the source performed for the current rows (always empty for local and live).

aggregatesreadonly aggregates: AggregateValues | null;

Server totals of the current result (DataSourceResult.aggregates), or null.