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
5 6 7 8 9 10 11 |
# File 'lib/active_admin/inputs/datepicker_input.rb', line 5 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
14 15 16 17 18 |
# File 'lib/active_admin/inputs/datepicker_input.rb', line 14 def res = super res = res.call if res.is_a? Proc res end |