class

Crubbletea::Bubbles::TableModel

Inherits Reference < Object

Constructors

new(columns : Array(String) = [] of String, rows : Array(Array(String)) = [] of Array(String), style : Lipgloss::Style = Lipgloss::Style.new, header_style : Lipgloss::Style = Lipgloss::Style.new.bold(true), cell_style : Lipgloss::Style = Lipgloss::Style.new, selected_row : Int32 = 0, height : Int32 = 0, width : Int32 = 0, focused : Bool = false)
Source

Instance methods

blur
Source
cell_style
Source
columns
Source
focus
Source
focused?
Source
header_style
Source
height
Source
move_bottom
Source
move_down
Source
move_top
Source
move_up
Source
row_count
Source
rows
Source
selected_row
Source
selected_row_data
Source
set_columns(cols : Array(String)) : Nil
Source
set_rows(rs : Array(Array(String))) : Nil
Source
style
Source
update(msg : Crubbletea::Msg) : Tuple(TableModel, Crubbletea::Cmd)
Source
view
Source
width
Source