Table nodes

DocStudio table nodes: columns, data source, cell expressions, fixed rows, footer rows with totals, repeating headers, zebra rows and an empty state.

A table node renders rows from a data array and optional fixed rows, with a header and footer.

Columns

Each column has an id and a literal-string header, and optionally cell, width, align, visible and style. cell is an expression evaluated once per row. Widths are { "mode": "auto" | "fixed" | "percent", "value": n }.

Data and fixed rows

source is the path of the data array and is optional. rows holds fixed body rows that appear before the data rows. A row is { cells, style? } and a cell is { text?, expr?, span?, align?, style? }. A table without a source shows only its fixed rows, as in the financial statement example.

footer uses the same row shape and is evaluated with $rows, so it can total the data rows:

{
  "cells": [
    { "text": "Subtotal", "span": 2 },
    {
      "expr": {
        "fn": "sum",
        "args": [{ "path": "$rows" }],
        "of": { "fn": "mul", "args": [{ "path": "qty" }, { "path": "price" }] }
      },
      "align": "end"
    }
  ]
}

Presentation

Property Effect
repeatHeader Repeat the header on every page
zebra Alternate row backgrounds
rowBreak avoid keeps a row from splitting across pages
headerStyle A style for every header cell
emptyState A message shown when there are no rows

A cell style replaces the cell alignment, so set textAlign in the style when you style a cell that also has align.

Not available

Cells cannot span several rows, and nested tables are not a table feature. Use a repeater for non-tabular lists. See pagination for how long tables continue.

Tables feature page and the inventory example.

Last updated 2026-12-03