Skip to content
Sheetwrite

Sheetwrite / Documentation

SimpleColumn@sheetwrite/react

Column definition accepted by the adapters’ simple row-object API.

Column definition accepted by the adapters’ simple row-object API.

Members 8

key Non-empty row-object key, unique within the column list.
key: keyof Row & string;
title Schema header label used by exports.
title: string;
width Unzoomed width in CSS pixels; defaults to 120.
width?: number;
type Input and formatting type; defaults to text.
type?: CellFormat;
numberFormat Excel number-format code used for number, date, or currency display.
numberFormat?: string;
headerStyle Style applied to the painted column-letter header.
headerStyle?: CellStyle;
cellStyle Base style merged beneath cell-specific styles.
cellStyle?: CellStyle;
visible Set to false to exclude the column from the live view and table exports.
visible?: boolean;

Declaration

View full TypeScript declaration
export 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;
}