Skip to content
Sheetwrite

Sheetwrite / Documentation

SheetwriteProps@sheetwrite/react

Simple framework adapter props for columns and default row objects.

Simple framework adapter props for columns and default row objects.

Declaration

export type SheetwriteProps<
Row extends Record<string, CellScalar>,
Id extends RowBridgeId = RowBridgeId,
> = Omit<
SheetwriteGridProps<Id>,
"workbook" | "data" | "datasource" | "height" | "fill" | "rowBridge"
> &
GridSizeProps & {
columns: readonly SimpleColumn<Row>[];
defaultRows: readonly Row[];
sheetName?: string;
getRowId?: (row: Row, index: number) => Id;
createRowId?: Parameters<
typeof createSimpleRowBridge<Row, Id>
>[0]["createRowId"];
};