Sha256: fb1999580a0eceb208545625c38862d38b216acfa9064b7a543d054b393bcbae

Contents?: true

Size: 315 Bytes

Versions: 53

Compression:

Stored size: 315 Bytes

Contents

# frozen_string_literal: true

class MultipleSelectInput < SimpleForm::Inputs::CollectionSelectInput
  def input_type
    :multiple_select
  end

  def input_html_options
    options = super
    klass = (options[:class] ||= [])
    klass << "chosen-select"
    options[:multiple] = "multiple"
    options
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
renalware-core-2.0.75 app/inputs/multiple_select_input.rb
renalware-core-2.0.74 app/inputs/multiple_select_input.rb
renalware-core-2.0.73 app/inputs/multiple_select_input.rb
renalware-core-2.0.72 app/inputs/multiple_select_input.rb
renalware-core-2.0.71 app/inputs/multiple_select_input.rb
renalware-core-2.0.70 app/inputs/multiple_select_input.rb
renalware-core-2.0.69 app/inputs/multiple_select_input.rb
renalware-core-2.0.68 app/inputs/multiple_select_input.rb
renalware-core-2.0.67 app/inputs/multiple_select_input.rb
renalware-core-2.0.64 app/inputs/multiple_select_input.rb
renalware-core-2.0.63 app/inputs/multiple_select_input.rb
renalware-core-2.0.62 app/inputs/multiple_select_input.rb
renalware-core-2.0.61 app/inputs/multiple_select_input.rb
renalware-core-2.0.60 app/inputs/multiple_select_input.rb
renalware-core-2.0.58 app/inputs/multiple_select_input.rb
renalware-core-2.0.57 app/inputs/multiple_select_input.rb
renalware-core-2.0.56 app/inputs/multiple_select_input.rb
renalware-core-2.0.55 app/inputs/multiple_select_input.rb
renalware-core-2.0.54 app/inputs/multiple_select_input.rb
renalware-core-2.0.53 app/inputs/multiple_select_input.rb