class
TUI::TableView
- TUI::TableView
- TUI::ListView
- Reference
- Object
Defined in:
tui/widgets/table_view.crConstructors
Instance Method Summary
-
#header_style : Style
Applied to the header row's text (see #render_header).
-
#header_style=(header_style : Style)
Applied to the header row's text (see #render_header).
-
#row_content(index : Int32) : String
The content string for content-row
index, before the leading " {pointer}" prefix and before width-fitting/highlight styling (those stay inrender_content, shared by every subclass).
Instance methods inherited from class TUI::ListView
content_size : Int32
content_size,
cursor_focused_style : Style
cursor_focused_style,
cursor_focused_style=(cursor_focused_style : Style)
cursor_focused_style=,
cursor_unfocused_style : Style
cursor_unfocused_style,
cursor_unfocused_style=(cursor_unfocused_style : Style)
cursor_unfocused_style=,
filter_active? : Bool
filter_active?,
filter_prompt_style : Style
filter_prompt_style,
filter_prompt_style=(filter_prompt_style : Style)
filter_prompt_style=,
handle_click(local_row : Int32, local_col : Int32, scroll : ScrollControl) : Bool
handle_click,
handle_key(ev : KeyEvent, scroll : ScrollControl) : Bool
handle_key,
header_rows : Int32
header_rows,
on_activate : Proc(Int32, Nil) | Nil
on_activate,
on_activate=(on_activate : Proc(Int32, Nil) | Nil)
on_activate=,
on_select : Proc(Int32, Nil) | Nil
on_select,
on_select=(on_select : Proc(Int32, Nil) | Nil)
on_select=,
reload : Nil
reload,
render_content(buffer : Buffer, scroll : ScrollControl) : Nil
render_content,
row_content(index : Int32) : String
row_content,
selected_index : Int32 | Nil
selected_index,
status_hint : String
status_hint,
title : String
title,
title_style : Style
title_style,
title_style=(title_style : Style)
title_style=
Constructor methods inherited from class TUI::ListView
new(source : ListDataSource)
new
Macros inherited from class TUI::ListView
scroll(header)
scroll
Instance methods inherited from module TUI::Scrollable
content_size : Int32
content_size,
focus_if(condition : Bool) : Nil
focus_if,
focused=(focused : Bool)
focused=,
focused? : Bool
focused?,
handle_click(local_row : Int32, local_col : Int32, scroll : ScrollControl) : Bool
handle_click,
handle_key(ev : KeyEvent, scroll : ScrollControl) : Bool
handle_key,
header_rows : Int32
header_rows,
render_content(buffer : Buffer, scroll : ScrollControl) : Nil
render_content,
status_hint : String
status_hint,
title : String
title
Constructor Detail
Instance Method Detail
Applied to the header row's text (see #render_header).
def row_content(index : Int32) : String
#
Description copied from class TUI::ListView
The content string for content-row index, before the leading
" {pointer}" prefix and before width-fitting/highlight styling
(those stay in render_content, shared by every subclass).