class

Tui::Grid

Inherits Tui::Widget / Tui::Reactive / Reference / Object

Constructors

new(id : String | Nil = nil, columns : Int32 = 2, &block : -> Array(Widget))
Source
new(id : String | Nil = nil, columns : Int32 = 2)
Source

Instance methods

apply_css_style(css_style : Hash(String, CSS::Value)) : Nil

Override to handle grid-specific CSS properties

Source
column_gap
Source
column_gap=(column_gap : Int32)
Source
column_span(child_index : Int32) : Int32

Get column span for a child

Source
columns
Source
columns=(columns : Int32)
Source
compose

Override to return child widgets

Source
render(buffer : Buffer, clip : Rect) : Nil

Override to render widget content

Source
row_gap
Source
row_gap=(row_gap : Int32)
Source
row_span(child_index : Int32) : Int32

Get row span for a child

Source
rows
Source
rows=(rows : Int32)
Source
set_column_span(child_index : Int32, span : Int32) : Nil

Set column span for a child at index

Source
set_row_span(child_index : Int32, span : Int32) : Nil

Set row span for a child at index

Source