Skip to content
Sheetwrite

Sheetwrite / Documentation

Column@sheetwrite/core

Schema and default presentation for one workbook column.

Schema and default presentation for one workbook column.

Members 10

key Non-empty key, unique within the sheet, used to map input and datasource values.
key: string;
header Schema label written by table exports; the canvas header displays positional column letters.
header: string;
width Unzoomed column width in CSS pixels.
width: number;
type Controls cell input parsing and default value formatting for this column.
type: CellFormat;
numberFormat Excel number-format code, e.g.
numberFormat?: string;

Excel number-format code, e.g. "#,##0.00"

numberLocale Explicit BCP 47 locale for separators; omitted keeps the deterministic default.
numberLocale?: string;
headerStyle Overrides theme styling for the painted column-letter header.
headerStyle?: CellStyle;
cellStyle Base style merged beneath each cell's own style.
cellStyle?: CellStyle;
visible Set to false to exclude the column from the live view and table exports.
visible?: boolean;
renderer Name of a registered custom cell renderer (see Grid.defineCellRenderer).
renderer?: string;

Declaration

View full TypeScript declaration
export interface Column {
key: string;
header: string;
width: number;
type: CellFormat;
numberFormat?: string;
numberLocale?: string;
headerStyle?: CellStyle;
cellStyle?: CellStyle;
visible?: boolean;
renderer?: string;
}