View as Markdown

API reference: @salmonui/data-grid

DataGridDevtoolsCommitinterface

import type { DataGridDevtoolsCommit } from '@salmonui/data-grid';
interface DataGridDevtoolsCommit {
    readonly gridId: string;
    readonly phase: 'mount' | 'update' | 'nested-update';
    readonly actualDuration: number;
    readonly cells: readonly string[];
    readonly rows: readonly RowId[];
    readonly headers: readonly ColumnId[];
}

Dev-only commit report passed to globalThis.__SALMON_UI_DEVTOOLS__.onCommit.

DataGridDevtoolsCommit members (6)
NameSignatureDescription
gridIdreadonly gridId: string;
phasereadonly phase: 'mount' | 'update' | 'nested-update';
actualDurationreadonly actualDuration: number;
cellsreadonly cells: readonly string[];

rowId:columnId of every body cell rendered in the commit.

rowsreadonly rows: readonly RowId[];
headersreadonly headers: readonly ColumnId[];