Class: SimpleFormBootstrapInputs::DatePickerInput
- Inherits:
-
SimpleForm::Inputs::StringInput
- Object
- SimpleForm::Inputs::StringInput
- SimpleFormBootstrapInputs::DatePickerInput
- Defined in:
- lib/simple_form_bootstrap_inputs/date_picker_input.rb
Direct Known Subclasses
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() set_value_html_option template.content_tag :div, class: 'input-group date datetimepicker' do input = super() # leave StringInput do the real rendering input + end end |
#input_html_classes ⇒ Object
13 14 15 |
# File 'lib/simple_form_bootstrap_inputs/date_picker_input.rb', line 13 def input_html_classes super.push '' # 'form-control' end |