Sha256: 55073e7ab4316494612f289d431caed4118039a30f08e5eda74447340f6d397d

Contents?: true

Size: 251 Bytes

Versions: 3

Compression:

Stored size: 251 Bytes

Contents

class DatepickerInput < SimpleForm::Inputs::StringInput
  def input(wrapper_options)
    input_html_options[:data] ||= {}
    input_html_options[:class] << 'datepicker'
    input_html_options[:data].merge!({ locale: I18n.locale })
    super
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple_form_custom_inputs-0.1.0 lib/simple_form_custom_inputs/simple_form/datepicker_input.rb
simple_form_custom_inputs-0.0.4 lib/simple_form_custom_inputs/simple_form/datepicker_input.rb
simple_form_custom_inputs-0.0.3 lib/simple_form_custom_inputs/simple_form/datepicker_input.rb