View as Markdown

API reference: @salmonui/data-grid/engine

RowSnapshotinterface

import type { RowSnapshot } from '@salmonui/data-grid/engine';

Also exported from @salmonui/data-grid.

interface RowSnapshot<Row> {
    readonly id: RowId;
    readonly kind: RowKind;
    readonly row: Row | null;
    readonly index: number;
    readonly depth: number;
    readonly parentId: RowId | null;
}
RowSnapshot members (6)
NameSignatureDescription
idreadonly id: RowId;
kindreadonly kind: RowKind;
rowreadonly row: Row | null;
indexreadonly index: number;

Position in the visible row model; -1 when the row is filtered out.

depthreadonly depth: number;
parentIdreadonly parentId: RowId | null;