Skip to content
Sheetwrite

Sheetwrite / Documentation

SimpleSheetwriteOptions@sheetwrite/core/adapter

Framework-neutral simple columns, rows, sizing, and grid options.

Framework-neutral simple columns, rows, sizing, and grid options.

Members 5

columns
columns: readonly SimpleColumn<Row>[];
defaultRows
defaultRows: readonly Row[];
sheetName
sheetName?: string;
getRowId Opt-in stable data-row identity extractor.
getRowId?: (row: Row, index: number) => Id;
createRowId Optional identity factory for rows inserted by the Grid.
createRowId?: RowBridgeOptions<Row, Id>["createRowId"];

Declaration

View full TypeScript declaration
export interface SimpleSheetwriteOptions<
Row extends Record<string, CellScalar>,
Id extends RowBridgeId = RowBridgeId,
> {
columns: readonly SimpleColumn<Row>[];
defaultRows: readonly Row[];
sheetName?: string;
getRowId?: (row: Row, index: number) => Id;
createRowId?: RowBridgeOptions<Row, Id>["createRowId"];
}