class RatatuiRuby::Table

A widget that displays data in a grid with rows and columns.

header

An array of strings or Paragraphs representing the header row.

rows

An array of arrays of strings or Paragraphs representing the data rows.

widths

An array of Constraint objects defining column widths.

highlight_style

The style for the selected row.

highlight_symbol

The symbol to display in front of the selected row.

selected_row

The index of the currently selected row, or nil if none.

block

An optional Block widget to wrap the table.