class Tui::Table

Defined in:

tui/table.cr

Constant Summary

GAP = 2
GUTTER = 3

Constructors

Instance Method Summary

Constructor Detail

def self.fit(columns : Array(Column), rows : Array(Array(String)), term_width : Int32, gutter : Bool = false) : Table #

def self.new(columns : Array(Column), widths : Array(Int32), gutter : Bool) #

Instance Method Detail

def columns : Array(Column) #

def gutter? : Bool #

def header(glyph : String = "", glyph_color : String | Nil = nil) : String #

def row(cells : Array(String), glyph : String = "", glyph_color : String | Nil = nil, &block : String, Int32 -> String) : String #

def row(cells : Array(String), glyph : String = "", glyph_color : String | Nil = nil) : String #

def total : Int32 #

def widths : Array(Int32) #