table

fun table(init: TableBuilder.() -> Unit): Table

Build a table widget.

Tables have three optional sections: the header, the body, and the footer.

Within each section, you can add entire rows of cells at once, or one at a time with the cell builder.

You can customize the table's styles at a number of levels, with more specific styles overriding less specific styles. The places you can customize are, from least-specific to most-specific:

  1. Table: applies to every cell

  2. Section: applies to all cells in the header, body, or footer

  3. Table Column: applies to all cells in a column

  4. Section Column: applies to all cells in a column for a single section

  5. Row: applies to all cells in a row

  6. Cell: applies to a single cell