Files
openfoodnetwork/app/components/multiple_checked_select_component.rb
Jean-Baptiste Bellet b7adc5f551 Create the MultipleCheckedComponent
+ Associate the StimulusController to this component
2022-10-11 10:05:06 +02:00

10 lines
224 B
Ruby

# frozen_string_literal: true
class MultipleCheckedSelectComponent < ViewComponent::Base
def initialize(name:, options:, selected:)
@name = name
@options = options
@selected = selected.map(&:to_sym)
end
end