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.0.pre.rc7 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.rc6 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.rc5 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.rc4 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.rc3 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.rc1 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.beta12 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.beta11 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.beta10 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.beta9 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.beta8 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.beta7 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.beta6 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.beta5 app/inputs/multiple_select_input.rb
renalware-core-2.0.0.pre.beta4 app/inputs/multiple_select_input.rb