Method: Anchor::SelectComponent#initialize

Defined in:
app/components/anchor/select_component.rb

#initialize(form_builder:, attribute:, choices:, show_marker: true, **kwargs) ⇒ SelectComponent

Returns a new instance of SelectComponent.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'app/components/anchor/select_component.rb', line 5

def initialize(
  form_builder:,
  attribute:,
  choices:,
  show_marker: true,
  **kwargs
)
  @form_builder = form_builder
  @attribute = attribute
  @choices = choices
  @show_marker = show_marker

  super(**kwargs)
end