Module: JqueryUiForm::Inputs::DateInput

Included in:
FormBuilder
Defined in:
lib/jquery_ui_form/inputs/date_input.rb

Instance Method Summary collapse

Instance Method Details

#date_input(method, options = {}) ⇒ Object



5
6
7
8
9
# File 'lib/jquery_ui_form/inputs/date_input.rb', line 5

def date_input(method, options = {})
  # options[:type] = "date"
  options["data-calendar"] = options["data-calendar"].to_json if options["data-calendar"].is_a?(Hash)
  basic_input_helper(:date_field, :date, method, options)   
end

#datetime_input(method, options = {}) ⇒ Object



11
12
13
14
15
# File 'lib/jquery_ui_form/inputs/date_input.rb', line 11

def datetime_input(method, options = {})
  # options[:type] = "datetime"
  options["data-calendar"] = options["data-calendar"].to_json if options["data-calendar"].is_a?(Hash)
  basic_input_helper(:datetime_field, :datetime, method, options)   
end

#time_input(method, options = {}) ⇒ Object



17
18
19
20
# File 'lib/jquery_ui_form/inputs/date_input.rb', line 17

def time_input(method, options = {})
  # options[:type] = "time"
  basic_input_helper(:time_field, :time, method, options)   
end