Class: PhlexKit::ComboboxList

Inherits:
BaseComponent show all
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

Methods inherited from BaseComponent

#on

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_templateObject



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