Framework-neutral simple columns, rows, sizing, and grid options.
Package @sheetwrite/core/adapter
Source packages/core/src/adapter.ts#L181
Members 3
columns
columns : readonly SimpleColumn interface SimpleColumn<Row extends Record<string, CellScalar>> {
key: keyof Row & string;
title: string;
width?: number;
type?: CellFormat;
numberFormat?: string;
headerStyle?: CellStyle;
cellStyle?: CellStyle;
visible?: boolean;
} interface SimpleColumn < Row extends Record < string , CellScalar >> {
key : keyof Row & string ;
title : string ;
width ?: number ;
type ?: CellFormat ;
numberFormat ?: string ;
headerStyle ?: CellStyle ;
cellStyle ?: CellStyle ;
visible ?: boolean ;
} interface SimpleColumn <
Row extends Record <
string ,
CellScalar
>,
> {
key : keyof Row & string ;
title : string ;
width ?: number ;
type ?: CellFormat ;
numberFormat ?: string ;
headerStyle ?: CellStyle ;
cellStyle ?: CellStyle ;
visible ?: boolean ;
} Column definition accepted by the adapters’ simple row-object API. API reference → < Row > [];
defaultRows
defaultRows : readonly Row[];
sheetName
Declaration
View full TypeScript declaration
export interface SimpleSheetwriteOptions <
Row extends Record < string , CellScalar type CellScalar = string | number | boolean | null; type CellScalar = string | number | boolean | null ; type CellScalar =
| string
| number
| boolean
| null ; A scalar that can be displayed directly. API reference → >, columns : readonly SimpleColumn interface SimpleColumn<Row extends Record<string, CellScalar>> {
key: keyof Row & string;
title: string;
width?: number;
type?: CellFormat;
numberFormat?: string;
headerStyle?: CellStyle;
cellStyle?: CellStyle;
visible?: boolean;
} interface SimpleColumn < Row extends Record < string , CellScalar >> {
key : keyof Row & string ;
title : string ;
width ?: number ;
type ?: CellFormat ;
numberFormat ?: string ;
headerStyle ?: CellStyle ;
cellStyle ?: CellStyle ;
visible ?: boolean ;
} interface SimpleColumn <
Row extends Record <
string ,
CellScalar
>,
> {
key : keyof Row & string ;
title : string ;
width ?: number ;
type ?: CellFormat ;
numberFormat ?: string ;
headerStyle ?: CellStyle ;
cellStyle ?: CellStyle ;
visible ?: boolean ;
} Column definition accepted by the adapters’ simple row-object API. API reference → < Row >[]; defaultRows : readonly Row [];