Columns, widths and alignment

Configure each column. Tables in the DocStudio designer user guide.

Open the table, then the Columns list in the Content group. Each column has the following settings.

Setting Meaning
Header The heading text
Cell content The expression for the cell. Use a path (name), a calculation (mul(qty, price)) or a formatted value
Width mode auto (as needed), fixed (millimetres) or percent (share of the table)
Width value The number for fixed or percent. A percent value is at most 100
Alignment Default, start, center or end. Use end for numbers
Visible when A condition. When false the column is not drawn. Add it with Add visibility condition
Style Style properties for the column

Use Duplicate, Remove, Move up and Move down to arrange columns.

Width rules

  • Without widths the browser shares the width by content.
  • Percent widths are a share of the table width. Keep the sum at or below 100.
  • Fixed widths are in millimetres.

Hide a column from data

Add a visibility condition, for example eq(showPrices, true). When the sample data sets showPrices to false, the column disappears and the Layers and canvas update.

Format a column

Make the cell content a format call to show money or dates: format("currency", price, "USD").

Long text

Cells wrap long text. Use fixed or percent widths to stop one column from taking all the space. A very long word is broken so it cannot overflow.

Limits

The header is plain text. Per-cell styles apply to the whole column.