class

Crubbletea::Bubbles::List::ListModel

Inherits Crubbletea::Bubbles::Help::KeyMap < Reference < Object

Constructors

new(items : Array(Item) = [] of Item, initial_index : Int32 = 0, width : Int32 = 20, height : Int32 = 10, styles : Styles = Styles.new, key_map : KeyMap = KeyMap.new, infinite : Bool = false, title : String = "", show_status_bar : Bool = true, show_pagination : Bool = true, show_help : Bool = true, help_show_all : Bool = false, filtering_enabled : Bool = true, item_height : Int32 = 2, item_spacing : Int32 = 1, selected_prefix : String = "", normal_prefix : String = "", additional_short_help_keys : Array(Key::Binding) = [] of Key::Binding, additional_full_help_keys : Array(Array(Key::Binding)) = [] of Array(Key::Binding))
Source

Instance methods

additional_full_help_keys
Source
additional_short_help_keys
Source
cursor_down
Source
cursor_end
Source
cursor_start
Source
cursor_up
Source
filter
Source
filter_applied?
Source
filter_input
Source
filter_state
Source
filtering?
Source
filtering_enabled
Source
full_help
Source
height
Source
help_show_all
Source
index
Source
infinite
Source
item_height
Source
item_spacing
Source
items
Source
items=(items : Array(Item)) : Nil
Source
key_map
Source
next_page
Source
normal_prefix
Source
prev_page
Source
select(idx : Int32) : Nil
Source
selected
Source
selected_prefix
Source
set_size(w : Int32, h : Int32) : Nil
Source
short_help
Source
show_help
Source
show_pagination
Source
show_status_bar
Source
status_message
Source
status_message=(msg : String) : Nil
Source
styles
Source
title
Source
update(msg : Crubbletea::Msg) : Tuple(ListModel, Item | Nil, Crubbletea::Cmd)
Source
view
Source
width
Source