Module: JqueryUiForm::Inputs::DateInput
- Included in:
- FormBuilder
- Defined in:
- lib/jquery_ui_form/inputs/date_input.rb
Instance Method Summary collapse
- #date_input(method, options = {}) ⇒ Object
- #datetime_input(method, options = {}) ⇒ Object
- #time_input(method, options = {}) ⇒ Object
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[:type] = "date" ["data-calendar"] = ["data-calendar"].to_json if ["data-calendar"].is_a?(Hash) basic_input_helper(:date_field, :date, method, ) 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[:type] = "datetime" ["data-calendar"] = ["data-calendar"].to_json if ["data-calendar"].is_a?(Hash) basic_input_helper(:datetime_field, :datetime, method, ) 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[:type] = "time" basic_input_helper(:time_field, :time, method, ) end |