RenderTableOptions
RenderTableOptions =
object
Defined in: types.ts:17
Properties
Section titled “Properties”align?
Section titled “align?”
optionalalign?: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".
border?
Section titled “border?”
optionalborder?:TableBorderStyle
Defined in: types.ts:19
Default "none" — columns separated by two spaces, no rules.
locale?
Section titled “locale?”
optionallocale?:string|string[]
Defined in: types.ts:31
Locale for number and date formatting.
maxWidth?
Section titled “maxWidth?”
optionalmaxWidth?:Readonly<Record<string,number>>
Defined in: types.ts:38
Hard cap per field name; longer cells are truncated with an ellipsis.
nullText?
Section titled “nullText?”
optionalnullText?:string
Defined in: types.ts:29
Rendered for null. Default "".
styleCell?
Section titled “styleCell?”
optionalstyleCell?: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.
styleFootnote?
Section titled “styleFootnote?”
optionalstyleFootnote?:TableStyler
Defined in: types.ts:27
styleHeader?
Section titled “styleHeader?”
optionalstyleHeader?:TableCellStyler
Defined in: types.ts:25
styleTitle?
Section titled “styleTitle?”
optionalstyleTitle?:TableStyler
Defined in: types.ts:26