Class: SimpleFormBootstrapInputs::DatePickerInput

Inherits:
SimpleForm::Inputs::StringInput
  • Object
show all
Defined in:
lib/simple_form_bootstrap_inputs/date_picker_input.rb

Direct Known Subclasses

DatetimePickerInput

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/simple_form_bootstrap_inputs/date_picker_input.rb', line 3

def input(wrapper_options)
  set_html_options
  set_value_html_option

  template. :div, class: 'input-group date datetimepicker' do
    input = super(wrapper_options) # leave StringInput do the real rendering
    input + input_button
  end
end

#input_html_classesObject



13
14
15
# File 'lib/simple_form_bootstrap_inputs/date_picker_input.rb', line 13

def input_html_classes
  super.push '' # 'form-control'
end