Egui::SelectBox
Inherits Reference < Object
Constructors
new(id : String, selected : String, options : Array(String), width : Float64 | Nil = nil, label : String | Nil = nil, max_height : Float64 = 220.0)
label pins a placeholder shown while NOTHING is selected
(selected == "", like TextEdit's hint); it also leads the
dropdown as the zero option — picking it reports "".
width defaults to a fixed column (no measure-every-option pass
— the option list is too long for that to be cheap).
max_height caps the dropdown's scroll viewport.
Instance methods
label(text : String) : self
Sourceshow(ui : Ui, &on_select : String -> ) : Bool
on_select fires with the picked option ("" for the placeholder
row); returns whether a new option got picked this frame.