Skip to content

TableColumn

One column header of a Table.

Carries the header text and how the column is laid out. The first column of a table is significant beyond presentation: when its name is a dice formula such as "d100", the table matches rolls against ranges in that column rather than by row position.

  • SeeAlso: Table

View JSON Schema

Property Type Required Description
name string Yes The column header text.
Examples: "d100" — marks the first column as holding result ranges; "Magic Item"
alignment string No How cells in this column are aligned, as the raw value of an Alignment. Use alignmentValue for the typed form. A nil value falls back to centered for formula columns and leading otherwise.
Examples: "left", "right", "center"
size number No The column’s width. Interpreted by magnitude: 0 means size to content, a value up to 1 is a fraction of the table width, and anything larger is an absolute width in points.
Examples: 0 — dynamic; 0.25 — a quarter of the table; 120 — 120 points SeeAlso: sizeTitle(for:)

How cells in a TableColumn are aligned.

Type: string — one of:

  • left
  • right
  • center