Class: PhlexKit::NativeSelectOption

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/native_select/native_select_option.rb

Overview

A single

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

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