class

Ori::Table

Inherits Ori::Node < Reference < Object

Constructors

new(headers : Array(String) = [] of String, rows : Array(Array(String)) = [] of Array(String), selected_row : Int32 = 0, on_change : Proc(Int32, Nil) | Nil = nil, on_select : Proc(Int32, Nil) | Nil = nil, header_fg : String | Nil = nil, selected_fg : String | Nil = nil, selected_bg : String | Nil = nil, style : Ori::S = Ori::S.none)
Source

Instance methods

content_height
Source
content_width
Source
focusable?
Source
headers
Source
headers=(headers : Array(String)) : Nil
Source
move_bottom
Source
move_down
Source
move_top
Source
move_up
Source
on_key(key : Ori::Key) : Bool
Source
render(io : IO) : Nil
Source
render_screen(screen : Ori::Screen) : Nil
Source
row_count
Source
rows
Source
rows=(rows : Array(Array(String))) : Nil
Source
selected_row
Source
selected_row=(row : Int32) : Nil
Source
selected_row_data
Source