Class: AhoyCaptain::ComboboxComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/ahoy_captain/combobox_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(name:, multiple: false, disabled: false, column:, url:, value: [], select_html: {}) ⇒ ComboboxComponent

Returns a new instance of ComboboxComponent.



3
4
5
6
7
8
9
10
11
# File 'app/components/ahoy_captain/combobox_component.rb', line 3

def initialize(name:, multiple: false, disabled: false, column:, url:, value: [], select_html: {})
  @name = name
  @multiple = multiple
  @column = column
  @url = url
  @value = Array(value)
  @select_html = select_html
  @disabled = disabled
end