class Tablo::Column

Defined in:

column.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(header : String, width : Int32, align_header : Justify, align_body : Justify, formatter : CellType -> String, styler : CellType -> String, extractor : Array(CellType) -> CellType) #

[View source]

Instance Method Detail

def body_cell_value(source) #

Get a cell value from source, which is Array(CellType).


[View source]
def body_subcells(source) #

Returns an array of string, representing the (possibly multilines) body cell formatted and aligned contents


[View source]
def formatted_cell_content(source) #

Format the cell using the formatter proc


[View source]
def formatter : Bool | Char | Float32 | Float64 | Int16 | Int32 | Int64 | Int8 | String | Symbol | UInt16 | UInt32 | UInt64 | UInt8 -> String #

[View source]
def formatter=(formatter : Bool | Char | Float32 | Float64 | Int16 | Int32 | Int64 | Int8 | String | Symbol | UInt16 | UInt32 | UInt64 | UInt8 -> String) #

[View source]
def header : String #

[View source]
def header_subcells #

Returns an array of string, representing the (possibly multilines) header formatted and aligned contents


[View source]
def width : Int32 #

[View source]
def width=(width : Int32) #

[View source]