Term2::Components::Table
Inherits Term2::Model < Reference < Object
Constants
HEADER_ROW = -1
HeaderRow constant used in StyleFunc to identify the header row
Constructors
build(*options : Option) : Table
SourceClass methods
default_styles
Sourcewith_styles(s : Styles) : Option
SourceInstance methods
border_bottom
Sourceborder_column
Sourceborder_header
Sourceborder_left
Sourceborder_right
Sourceborder_row
Sourceborder_style
Sourceborder_style=(border_style : Style)
Sourceborder_top
Sourcecell_style
Sourcecell_style=(s : Style)
Sourcecolumns
Sourcecursor
Sourcefilter_func
Sourcefilter_func=(filter_func : FilterFunc)
Sourcefilter_text
Sourcegoto_bottom
Sourcegoto_top
Sourcehandle_key(msg : KeyMsg)
Sourceheader_style=(s : Style)
Sourceid
Sourcekey_map
Sourcekey_map=(key_map : KeyMap)
Sourcerender_header
Sourcerows
Sourceselected_row
Sourceselected_style
Sourceselected_style=(s : Style)
Sourcestyle_func
Sourcestyle_func=(style_func : StyleFunc | Nil)
SourceUpdate is called when a message is received. Use it to inspect the message and, in response, update the model and/or send a command.
update_viewport
Sourceview
View renders the program's UI, which is just a string. The view is rendered after every Update.
visible_rows
Sourcewidth
Source