page.table builds a table element. You define the columns up front, add rows of cells, then
add the table to the page. Each cell is plain string content or an object with content and a
style.
Table options
An equal count, or an array of absolute widths in points where
0 means auto width. For
example columns: [180, 0, 100] sets two fixed columns with one auto column between them.The color of the cell borders.
The thickness of the cell borders.
The padding inside every cell.
The style applied to the first row, which is treated as the header.
The default style applied to body cells.
Adding rows
Build rows withtable.add_row. The first row added receives header_style.
A complete table
This low level table takes plain string cell content. For rich inline cells with bold text,
links, and inline formulas, use the Doc API table.
Related pages
Layout
Arrange tables and other elements with containers.
Themes
Centralize colors used in cell and header styles.