Skip to content

RenderTableOptions

RenderTableOptions = object

Defined in: types.ts:17

optional align?: Readonly<Record<string, TextAlign>>

Defined in: types.ts:36

Overrides the alignment derived from a field’s measurement scale, by field name. Quantities default to "right", everything else to "left".


optional border?: TableBorderStyle

Defined in: types.ts:19

Default "none" — columns separated by two spaces, no rules.


optional locale?: string | string[]

Defined in: types.ts:31

Locale for number and date formatting.


optional maxWidth?: Readonly<Record<string, number>>

Defined in: types.ts:38

Hard cap per field name; longer cells are truncated with an ellipsis.


optional nullText?: string

Defined in: types.ts:29

Rendered for null. Default "".


optional styleCell?: TableCellStyler

Defined in: types.ts:24

Applied after padding, so escape codes can never affect alignment. Widths are always computed from the unstyled text via visibleWidth.


optional styleFootnote?: TableStyler

Defined in: types.ts:27


optional styleHeader?: TableCellStyler

Defined in: types.ts:25


optional styleTitle?: TableStyler

Defined in: types.ts:26