class TextUi::List
- TextUi::List
- TextUi::Widget
- Reference
- Object
Defined in:
textui/list.crConstructors
- .new(parent, x, y, items : Array(String) = [] of String)
- .new(parent, items : Array(String) = [] of String)
Instance Method Summary
- #cursor : Int32
- #cursor=(cursor : Int32) : Nil
- #focused_format : Format
- #focused_format=(focused_format : Format)
- #items : Array(String)
- #items=(items : Array(String))
- #on_select=(on_select : Proc(String, Nil) | Nil)
- #render
- #select(item : String) : Nil
- #select(item_idx : Int32) : Nil
- #selected_index : Int32
- #selected_item