class

Opal::FormModule::SelectField

Inherits Opal::FormModule::FormField < Reference < Object

Single-select choice field with horizontal arrows

Constructors

new(name : String, label : String, options : Array(String), default_idx : Int32 = 0)
Source

Instance methods

handle_key(key : Terminal::Key) : Bool
Source
options
Source
raw_value
Source
render(buffer : UI::Buffer, x : Int32, y : Int32, width : Int32) : Int32
Source
selected_idx
Source
selected_idx=(selected_idx : Int32)
Source