Opal::UI::Dropdown
Inherits Opal::UI::Control < Opal::UI::InputHookable < Opal::UI::Element < Opal::UI::Themable < Reference < Object
Interactive Dropdown / Select control. Displays the current selection in a collapsed box and expands into a scrollable popup list on activation. Automatically flips orientation upwards if positioned near the bottom of the screen.
Constructors
Instance methods
arrow_down_glyph
Sourcearrow_glyph
Sourcearrow_up_glyph
Sourceborder
Sourceborder=(b : Border | Nil)
Sourceborder_fg
Sourceborder_fg=(border_fg : Color | Nil)
Sourceborder_style
Sourceborder_style=(border_style : Border | Nil)
Sourceclose
Sourceexpanded?
Sourcefiltered_items
SourceDefault key event handler. Override in subclasses if not using @default_input_proc.
Default mouse event handler. Override in subclasses if not using @default_input_proc.
items
Sourcemax_visible_items
Sourcenormal_bg
Sourcenormal_bg=(normal_bg : Color | Nil)
Sourceon_change
Sourceon_change
Sourceopen
Sourceplaceholder
Sourcepopup_bg
Sourcepopup_bg=(popup_bg : Color | Nil)
Sourcescroll_offset
Sourcesearch_query
Sourceselect_index(index : Int32) : self
Sets selection by index, updating scroll position and firing callback
selected_bg
Sourceselected_bg=(selected_bg : Color | Nil)
Sourceselected_fg
Sourceselected_fg=(selected_fg : Color | Nil)
Sourceselected_index
Sourcestyle
Sourcestyle=(style : DropdownStyle)
Source