Sha256: d5148c1aa8d5b8db9e6071a2318a8bf104f8344ab82d347f26fef6bdaa9e4a60

Contents?: true

Size: 798 Bytes

Versions: 16

Compression:

Stored size: 798 Bytes

Contents

module JqueryUiForm 
  module Inputs
    module DateInput
      
      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
      
      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
      
      def time_input(method, options = {})
        # options[:type] = "time"
        basic_input_helper(:time_field, :time, method, options)   
      end
      
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
jquery-ui-form-0.2.8 lib/jquery_ui_form/inputs/date_input.rb
jquery-ui-form-0.2.7 lib/jquery_ui_form/inputs/date_input.rb
jquery-ui-form-0.2.6 lib/jquery_ui_form/inputs/date_input.rb
jquery-ui-form-0.2.5 lib/jquery_ui_form/inputs/date_input.rb
jquery-ui-form-0.2.4 lib/jquery_ui_form/inputs/date_input.rb
jquery-ui-form-0.2.3 lib/jquery_ui_form/inputs/date_input.rb
jquery-ui-form-0.2.2 lib/jquery_ui_form/inputs/date_input.rb
jquery-ui-form-0.2.1 lib/jquery_ui_form/inputs/date_input.rb
jquery-ui-form-0.2.0 lib/jquery_ui_form/inputs/date_input.rb
jquery-ui-form-0.1.6 lib/jquery_ui_form/inputs/date_input.rb
jquery-ui-form-0.1.5 lib/jquery_ui_form/inputs/date_input.rb
jquery-ui-form-0.1.4 lib/jquery_ui_form/inputs/date_input.rb
jquery-ui-form-0.1.3 lib/jquery_ui_form/inputs/date_input.rb
jquery-ui-form-0.1.2 lib/jquery_ui_form/inputs/date_input.rb
jquery-ui-form-0.1.1 lib/jquery_ui_form/inputs/date_input.rb
jquery-ui-form-0.1.0 lib/jquery_ui_form/inputs/date_input.rb