View as Markdown

API reference: @salmonui/data-grid/engine

LocalDataSourceOptionsinterface

import type { LocalDataSourceOptions } from '@salmonui/data-grid/engine';
interface LocalDataSourceOptions<Row> {
    readonly getRowId?: (row: Row, index: number) => RowId;
}
LocalDataSourceOptions members (1)
NameSignatureDescription
getRowIdoptionalreadonly getRowId?: (row: Row, index: number) => RowId;

Required for patch upsert/remove and for write. The engine passes its own when it wraps an array.