class

Ori::List

Inherits Ori::Node < Reference < Object

Constructors

new(items : Array(Item) = [] of Item, selected : Int32 = 0, checked : Array(Bool) = [] of Bool, on_select : Proc(Int32, Nil) | Nil = nil, on_change : Proc(Int32, Nil) | Nil = nil, selected_fg : String | Nil = nil, selected_bg : String | Nil = nil, selected_prefix : String = "▌ ", normal_prefix : String = " ", truncate : Int32 = 0, checkable : Bool = false, style : Ori::S = Ori::S.none)
Source

Instance methods

checked
Source
checked=(idx : Int32) : Nil
Source
checked?(idx : Int32) : Bool
Source
content_height
Source
content_width
Source
cursor
Source
focusable?
Source
index
Source
items
Source
items=(items : Array(Item)) : Nil
Source
on_key(key : Ori::Key) : Bool
Source
on_mouse(mouse : Ori::Mouse) : Bool
Source
render(io : IO) : Nil
Source
render_screen(screen : Ori::Screen) : Nil
Source
select(idx : Int32) : Nil
Source
selected
Source

Nested types