struct

TUI::TableColumn

Inherits Struct < Value < Object

One column definition, driving TableView's layout (see TableView#compute_col_widths). Columns start at preferred_width; if the available width is too small they shrink toward min_width (proportionally to slack above the floor); if there's width to spare, only columns with expand true grow to fill it, split proportionally to their own preferred_width. align controls Term.fit's padding side for both header and cell text.

Constructors

new(header : String, min_width : Int32, preferred_width : Int32, expand : Bool = false, align : Align = Align::Left)
Source

Instance methods

align
clone
Source
copy_with(header _header = @header, min_width _min_width = @min_width, preferred_width _preferred_width = @preferred_width, expand _expand = @expand, align _align = @align)
Source
expand
header
min_width
preferred_width