class

Bubbles::List::Model

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

Constructors

new(items : Array(Item), delegate : ItemDelegate, width : Int32, height : Int32)
Source

Instance methods

additional_full_help_keys
Source
additional_full_help_keys=(additional_full_help_keys : Proc(Array(Bubbles::Key::Binding)) | Nil)
Source
additional_short_help_keys
Source
additional_short_help_keys=(additional_short_help_keys : Proc(Array(Bubbles::Key::Binding)) | Nil)
Source
cursor

Cursor returns the index of the cursor on the current page.

Source
cursor=(cursor : Int32)
Source
cursor_down
Source
cursor_up
Source
delegate
Source
delegate=(delegate : ItemDelegate)
Source
disable_quit_keybindings
Source
disable_quit_keybindings=(disable_quit_keybindings : Bool)
Source
filter
Source
filter=(filter : FilterFunc)
Source
filter_input
Source
filter_input=(filter_input : Bubbles::TextInput::Model)
Source
filter_state

FilterState returns the current filter state.

Source
filter_state=(filter_state : FilterState)
Source
filter_value

FilterValue returns the current value of the filter.

Source
filtered

IsFiltered returns whether or not the list is currently filtered. It's purely a convenience method.

Source
filtered?
Source
filtered_items
Source
filtered_items=(filtered_items : Array(FilteredItem) | Nil)
Source
filtering_enabled

FilteringEnabled returns whether or not filtering is enabled.

Source
filtering_enabled=(filtering_enabled : Bool)
Source
full_help
Source
global_index
Source
go_to_end
Source
go_to_start
Source
height

Height returns the current height setting.

Source
height=(height : Int32)
Source
help
Source
index
Source
infinite_scrolling
Source
infinite_scrolling=(infinite_scrolling : Bool)
Source
init
Source
insert_item(index : Int32, item : Item) : Tea::Cmd | Nil
Source
item_name_plural
Source
item_name_plural=(item_name_plural : String)
Source
item_name_singular
Source
item_name_singular=(item_name_singular : String)
Source
items

Items returns the items in the list.

Source
items=(items : Array(Item))
Source
key_map
Source
key_map=(key_map : KeyMap)
Source
matches_for_item(index : Int32) : Array(Int32) | Nil
Source
new_status_message(s : String) : Tea::Cmd
Source
next_page
Source
paginator
Source
paginator=(paginator : Bubbles::Paginator::Model)
Source
prev_page
Source
remove_item(index : Int32)
Source
reset_filter
Source
reset_selected
Source
select(index : Int32)
Source
select_item(index : Int32)
Source
selected_item
Source
set_delegate(d : ItemDelegate)
Source
set_filter_state(state : FilterState)
Source
set_filter_text(filter_text : String)
Source
set_filtering_enabled(v : Bool)
Source
set_height(v : Int32)
Source
set_item(index : Int32, item : Item) : Tea::Cmd | Nil
Source
set_items(i : Array(Item)) : Tea::Cmd | Nil
Source
set_show_filter(v : Bool)
Source
set_show_help(v : Bool)
Source
set_show_pagination(v : Bool)
Source
set_show_status_bar(v : Bool)
Source
set_show_title(v : Bool)
Source
set_size(width : Int32, height : Int32)
Source
set_spinner(spinner_data : Bubbles::Spinner::SpinnerData)
Source
set_status_bar_item_name(singular : String, plural : String)
Source
set_width(v : Int32)
Source
setting_filter

SettingFilter returns whether or not the user is currently editing the filter value. It's purely a convenience method.

Source
setting_filter?
Source
short_help
Source
show_filter

ShowFilter returns whether or not the filter is set to be rendered. Note that this is separate from FilteringEnabled, so filtering can be hidden yet still invoked. This allows you to render filtering differently without having to re-implement it from scratch.

Source
show_filter=(show_filter : Bool)
Source
show_help

ShowHelp returns whether or not the help is set to be rendered.

Source
show_help=(show_help : Bool)
Source
show_pagination

ShowPagination returns whether the pagination is visible.

Source
show_pagination=(show_pagination : Bool)
Source
show_spinner
Source
show_spinner=(show_spinner : Bool)
Source
show_status_bar

ShowStatusBar returns whether or not the status bar is set to be rendered.

Source
show_status_bar=(show_status_bar : Bool)
Source
show_title

ShowTitle returns whether or not the title bar is set to be rendered.

Source
show_title=(show_title : Bool)
Source
spinner
Source
spinner=(spinner : Bubbles::Spinner::Model)
Source
start_spinner
Source
status_bar_item_name
Source
status_message
Source
status_message=(status_message : String)
Source
status_message_lifetime
Source
status_message_lifetime=(status_message_lifetime : Time::Span)
Source
status_view
Source
stop_spinner
Source
styles
Source
styles=(styles : Styles)
Source
title
Source
title=(title : String)
Source
toggle_spinner
Source
update(msg : Tea::Msg) : Tuple(self, Tea::Cmd | Nil)
Source
view
Source
visible_items
Source
width

Width returns the current width setting.

Source
width=(width : Int32)
Source