Class: PhlexKit::ComboboxList
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::ComboboxList
- Defined in:
- app/components/phlex_kit/combobox/combobox_list.rb
Overview
Scrollable option list in a PhlexKit::ComboboxPopover. See combobox.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ ComboboxList
constructor
A new instance of ComboboxList.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ ComboboxList
Returns a new instance of ComboboxList.
4 5 6 |
# File 'app/components/phlex_kit/combobox/combobox_list.rb', line 4 def initialize(**attrs) @attrs = attrs end |
Instance Method Details
#view_template ⇒ Object
8 9 10 |
# File 'app/components/phlex_kit/combobox/combobox_list.rb', line 8 def view_template(&) div(**mix({ class: "pk-combobox-list", role: "listbox" }, @attrs), &) end |