class

Tui::ComboBox

Inherits Tui::Widget / Tui::Reactive / Reference / Object

Constructors

new(id : String | Nil = nil)
Source

Instance methods

add_item(id : String, label : String, data : String | Nil = nil) : Nil
Source
bg_color
Source
bg_color=(bg_color : Color)
Source
border_color
Source
border_color=(border_color : Color)
Source
clear_items
Source
close
Source
enable_search
Source
enable_search=(enable_search : Bool)
Source
fg_color

Style

Source
fg_color=(fg_color : Color)

Style

Source
focus_bg
Source
focus_bg=(focus_bg : Color)
Source
focus_fg
Source
focus_fg=(focus_fg : Color)
Source
highlight_bg
Source
highlight_bg=(highlight_bg : Color)
Source
highlight_fg
Source
highlight_fg=(highlight_fg : Color)
Source
items
Source
max_visible_items
Source
max_visible_items=(max_visible_items : Int32)
Source
on_change
Source
on_event(event : Event) : Bool

Override to handle events for this widget (target/bubble phase) Called after children have had a chance to handle the event

Source
open?
Source
placeholder
Source
placeholder=(placeholder : String)
Source
render(buffer : Buffer, clip : Rect) : Nil

Override to render widget content

Source
render_rect

Override to include dropdown area when open

Source
select_by_id(id : String) : Bool
Source
selected
Source
selected_id
Source
selected_item
Source
toggle
Source

Nested types