class

TextUi::List

Inherits TextUi::Widget / Reference / Object

Constructors

new(parent, x, y, items : Array(String) = [] of String)
Source
new(parent, items : Array(String) = [] of String)
Source

Instance methods

cursor
Source
cursor=(cursor : Int32) : Nil
Source
focused_format
Source
focused_format=(focused_format : Format)
Source
items
Source
items=(items : Array(String))
Source
on_select=(on_select : Proc(String, Nil) | Nil)
Source
render
Source
select(item : String) : Nil
Source
select(item_idx : Int32) : Nil
Source
selected_index
Source
selected_item
Source