Sha256: 2259854cfec40043bba5ba900c7794f6351020bda701c30e7f9e90e6aaba8fa0

Contents?: true

Size: 284 Bytes

Versions: 35

Compression:

Stored size: 284 Bytes

Contents

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

35 entries across 35 versions & 1 rubygems

Version Path
renalware-core-2.0.16 app/inputs/multiple_select_input.rb
renalware-core-2.0.15 app/inputs/multiple_select_input.rb
renalware-core-2.0.14 app/inputs/multiple_select_input.rb
renalware-core-2.0.13 app/inputs/multiple_select_input.rb
renalware-core-2.0.12 app/inputs/multiple_select_input.rb
renalware-core-2.0.11 app/inputs/multiple_select_input.rb
renalware-core-2.0.9 app/inputs/multiple_select_input.rb
renalware-core-2.0.8 app/inputs/multiple_select_input.rb
renalware-core-2.0.7 app/inputs/multiple_select_input.rb
renalware-core-2.0.5 app/inputs/multiple_select_input.rb
renalware-core-2.0.4 app/inputs/multiple_select_input.rb
renalware-core-2.0.3 app/inputs/multiple_select_input.rb
renalware-core-2.0.2 app/inputs/multiple_select_input.rb
renalware-core-2.0.1 app/inputs/multiple_select_input.rb
renalware-core-2.0.0 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.rc13 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.rc11 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.rc10 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.rc9 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.rc8 app/inputs/multiple_select_input.rb