Basic table
Properties
Cell format
Each cell inheaders and rows can be either a simple string or a cell object:
Simple string:
Cell object properties
Cell image properties
When a cell contains exactly one
{{varName}} reference that resolves to an image variable, the cell is automatically rendered as an image. See Variables — Image variables in table cells.Form fields in table cells
A cell may contain one form field instead of text or an image:Column widths
UsecolumnWidths when specific columns need a fixed or proportional width.
Mixed layouts are supported. In
[4, "1fr", "2fr"], the first column is fixed at 4cm; the remaining width is split into three shares, one for column 2 and two for column 3.
If fewer widths than columns are provided, remaining columns are treated as "auto". If more widths than columns are provided, validation fails.
Variable data binding
Instead of definingrows inline, bind a table to a table variable via dataSource. Use mapping to select and reorder columns.
mapping is provided, only the specified columns (matched by name against the variable’s columns) are included. Without mapping, all data columns are used as-is.
Table style
Override the default table styling inline via thestyle property. This has the same structure as defaults.styles.table.
Full table style properties
Full table style properties
borders.outer / borders.inner
header
rows
cellPadding
Captions and anchors
Add acaption for automatic table numbering and an anchor for cross-referencing.
defaults.styles.tableCaption. See Defaults — Table caption style.
Defaults
Tables without an inlinestyle inherit from defaults.styles.table:
