View as Markdown

API reference: @salmonui/data-grid

DataGridLoadingRowContextinterface

import type { DataGridLoadingRowContext } from '@salmonui/data-grid';
interface DataGridLoadingRowContext {
    readonly rowIndex: number;
    readonly status: 'loading' | 'error';
    readonly error: unknown;
    readonly retry: () => void;
}

Context of renderLoadingRow: a row of a block that is loading or failed to load.

DataGridLoadingRowContext members (4)
NameSignatureDescription
rowIndexreadonly rowIndex: number;
statusreadonly status: 'loading' | 'error';
errorreadonly error: unknown;
retryreadonly retry: () => void;

Retries the failed block load.