Class: RBUI::ComboboxList

Inherits:
Base
  • Object
show all
Defined in:
lib/rbui/combobox/combobox_list.rb

Constant Summary

Constants inherited from Base

Base::TAILWIND_MERGER

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#before_template

Constructor Details

#initialize(**attrs) ⇒ ComboboxList

Returns a new instance of ComboboxList.



7
8
9
10
# File 'lib/rbui/combobox/combobox_list.rb', line 7

def initialize(**attrs)
  @id = "list#{SecureRandom.hex(4)}"
  super
end

Instance Method Details

#view_templateObject



12
13
14
# File 'lib/rbui/combobox/combobox_list.rb', line 12

def view_template(&)
  div(**attrs, &)
end