Class: PhlexKit::NativeSelectGroup
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::NativeSelectGroup
- Defined in:
- app/components/phlex_kit/native_select/native_select_group.rb
Overview
An
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ NativeSelectGroup
constructor
A new instance of NativeSelectGroup.
- #view_template(&block) ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ NativeSelectGroup
Returns a new instance of NativeSelectGroup.
5 6 7 |
# File 'app/components/phlex_kit/native_select/native_select_group.rb', line 5 def initialize(**attrs) @attrs = attrs end |
Instance Method Details
#view_template(&block) ⇒ Object
9 10 11 |
# File 'app/components/phlex_kit/native_select/native_select_group.rb', line 9 def view_template(&block) optgroup(**@attrs, &block) end |