Class: AhoyCaptain::ComboboxComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- AhoyCaptain::ComboboxComponent
- Defined in:
- app/components/ahoy_captain/combobox_component.rb
Instance Method Summary collapse
-
#initialize(name:, multiple: false, disabled: false, column:, url:, value: [], select_html: {}) ⇒ ComboboxComponent
constructor
A new instance of ComboboxComponent.
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 |