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