Class: RBUI::ComboboxGroup
- Defined in:
- lib/rbui/combobox/combobox_group.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(heading: nil, **attrs) ⇒ ComboboxGroup
constructor
A new instance of ComboboxGroup.
- #view_template(&block) ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(heading: nil, **attrs) ⇒ ComboboxGroup
Returns a new instance of ComboboxGroup.
5 6 7 8 |
# File 'lib/rbui/combobox/combobox_group.rb', line 5 def initialize(heading: nil, **attrs) @heading = heading super(**attrs) end |
Instance Method Details
#view_template(&block) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/rbui/combobox/combobox_group.rb', line 10 def view_template(&block) div(**attrs) do render_header if @heading render_items(&block) end end |