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
Constraintobjects defining column widths. - block
-
An optional
Blockwidget to wrap the table.
Public Class Methods
Source
# File lib/ratatui_ruby/schema/table.rb, line 20 def initialize(header: nil, rows: [], widths: [], block: nil) super end
- 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
Constraintobjects defining column widths. - block
-
An optional
Blockwidget to wrap the table.
Calls superclass method