Class: ActiveAdmin::Inputs::DatepickerInput
- Inherits:
-
Formtastic::Inputs::StringInput
- Object
- Formtastic::Inputs::StringInput
- ActiveAdmin::Inputs::DatepickerInput
- Defined in:
- lib/active_admin/inputs/datepicker_input.rb
Instance Method Summary collapse
- #input_html_options ⇒ Object
-
#label_from_options ⇒ Object
Can pass proc to filter label option.
Instance Method Details
#input_html_options ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/active_admin/inputs/datepicker_input.rb', line 4 def super.tap do || [:class] = [[:class], "datepicker"].compact.join(' ') [:data] ||= {} [:data].merge! end end |
#label_from_options ⇒ Object
Can pass proc to filter label option
13 14 15 16 17 |
# File 'lib/active_admin/inputs/datepicker_input.rb', line 13 def res = super res = res.call if res.is_a? Proc res end |