Skip to content
Sheetwrite

Sheetwrite / Documentation

RowBridgeOptions@sheetwrite/core

Options for the framework-neutral, opt-in row bridge.

Options for the framework-neutral, opt-in row bridge.

Members 5

columns
readonly columns: readonly RowBridgeColumn<Row>[];
defaultRows
readonly defaultRows: readonly Row[];
getRowId
readonly getRowId: (row: Row, index: number) => Id;
sheet Sheet identity used by the simple data-first adapter.
readonly sheet?: SheetId;

Sheet identity used by the simple data-first adapter. Defaults to `sheet1`.

createRowId Optional identity factory for rows created by an addRows operation.
readonly createRowId?: (context: RowBridgeInsertContext) => Id;

Declaration

View full TypeScript declaration
export interface RowBridgeOptions<
Row extends Record<string, CellScalar>,
Id extends RowBridgeId = RowBridgeId,
> {
readonly columns: readonly RowBridgeColumn<Row>[];
readonly defaultRows: readonly Row[];
readonly getRowId: (row: Row, index: number) => Id;
readonly sheet?: SheetId;
readonly createRowId?: (context: RowBridgeInsertContext) => Id;
}