Class: ActiveAdmin::Inputs::DatepickerInput

Inherits:
Formtastic::Inputs::StringInput
  • Object
show all
Defined in:
lib/active_admin/inputs/datepicker_input.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) input_html_options



4
5
6
7
8
9
10
# File 'lib/active_admin/inputs/datepicker_input.rb', line 4

def input_html_options
  super.tap do |options|
    options[:class] = [options[:class], "datepicker"].compact.join(' ')
    options[:data] ||= {}
    options[:data].merge! datepicker_options
  end
end