class

Ori::Select

Inherits Ori::Node < Reference < Object

Constants

ARROW = "▾"

Constructors

new(options : Array(String) = [] of String, selected : Int32 = 0, highlighted : Int32 = -1, open : Bool = false, on_change : Proc(Int32, Nil) | Nil = nil, on_toggle : Proc(Bool, Nil) | Nil = nil, on_highlight : Proc(Int32, Nil) | Nil = nil, max_visible : Int32 = 8, highlight_fg : String | Nil = nil, highlight_bg : String | Nil = nil, style : Ori::S = Ori::S.none)
Source

Instance methods

blur
Source
content_height
Source
content_width
Source
focusable?
Source
highlighted
Source
on_key(key : Ori::Key) : Bool
Source
on_mouse(mouse : Ori::Mouse) : Bool
Source
open
Source
options
Source
render(io : IO) : Nil
Source
render_overlay(screen : Ori::Screen) : Nil
Source
render_screen(screen : Ori::Screen) : Nil
Source
selected
Source
selected=(idx : Int32) : Nil
Source
selected_value
Source