Table

It represents a full table structure with header, rows, borders, background styling, and default cell paddings.

Constructors

Table

Table creates a new table with the specified columns and default styling.


Methods

MethodDescription
BackgroundColor(backgroundColor Color)BackgroundColor sets the background color of the table.
Border(border Border)Border sets the border of the table.
CellPadding(padding Padding)CellPadding sets the default cell padding for all cells. Specific cell padding overrides this setting.
Frame(frame Frame)Frame sets the frame of the table.
HeaderDividerColor(color Color)HeaderDividerColor sets the divider color between header and body.
RowDividerColor(color Color)RowDividerColor sets the divider color between rows.
Rows(rows ...)Rows appends one or more rows to the table.

Related