API reference: @salmonui/data-grid/engine
RowModelSnapshotinterface
import type { RowModelSnapshot } from '@salmonui/data-grid/engine';interface RowModelSnapshot<Row> {
readonly source: readonly Row[];
readonly sourceIds: readonly RowId[];
readonly order: Int32Array | null;
readonly count: number;
readonly groups?: GroupTreeSnapshot | null;
readonly aggregates?: AggregateModelSnapshot | null;
readonly view?: RowModelView | null;
readonly pinned?: Int32Array | null;
}
Visible row model. Rows are stored by reference in source with parallel
sourceIds; order maps a visible index to a source index (null means the
identity order). No per-row wrapper objects exist.
| Name | Signature | Description |
|---|---|---|
source | readonly source: readonly Row[]; | |
sourceIds | readonly sourceIds: readonly RowId[]; | |
order | readonly order: Int32Array | null; | Data rows in view order (source indexes). With a |
count | readonly count: number; | Visible rows: |
groupsoptional | readonly groups?: GroupTreeSnapshot | null; | Group structure from the |
aggregatesoptional | readonly aggregates?: AggregateModelSnapshot | null; | Aggregate results from the |
viewoptional | readonly view?: RowModelView | null; | Visible row model mixing synthetic rows (group captions and footers) with
data rows, addressed by visible index without a materialized list. When
present, |
pinnedoptional | readonly pinned?: Int32Array | null; | Pinned rows: source indexes of the rows at visible indexes
|