Table
Tables with configurable headers, dividers, and overflow.
Usage#
Separate cells with pipes and place a divider below the header row.
Background#
Wrap a table in TableOptions and set rowShading to header, striped, or none.
Dividers & Border#
Set columnDividers=true to separate columns. Use frame="none" to remove the outer border while keeping row dividers.
Column Widths#
Set columnWidths in column order using CSS lengths, percentages, or auto. Use nowrapColumns with one-based column numbers to keep those cells on one line. Wide tables scroll horizontally.
Reference#
columnWidthsDefault[]string[]Preferred widths in column order: CSS lengths, percentages, or auto.
columnDividersDefaultfalsebooleanShow separators between adjacent columns.
frameDefault"outline""none" | "outline"Outer table frame.
nowrapColumnsDefault[]number[]One-based columns whose contents must remain on one line.
rowShadingDefault"header""header" | "none" | "striped"Background treatment for rows.