Module CalendarDateSelect
In: lib/calendar_date_select/calendar_date_select.rb

Methods

Classes and Modules

Module CalendarDateSelect::FormHelpers
Module CalendarDateSelect::IncludesHelper

Constants

VERSION = '1.15'
FORMATS = { :natural => { :date => "%B %d, %Y", :time => " %I:%M %p"

Public Class methods

Returns the default_options hash. These options are by default provided to every calendar_date_select control, unless otherwise overrided.

Example:

  # At the bottom of config/environment.rb:
  CalendarDateSelect.default_options.update(
    :popup => "force",
    :month_year => "label",
    :image => "custom_calendar_picker.png"
  )

Returns the options for the given format

Example:

  CalendarDateSelect.format = :italian
  puts CalendarDateSelect.format[:date]
    => "%d/%m/%Y"

Set the format. To see a list of available formats, CalendarDateSelect::FORMATS.keys, or open lib/calendar_date_select/calendar_date_select.rb

(e.g. CalendarDateSelect.format = :italian)

Detects the presence of time in a date, string

Set the picker image. Provide the image url the same way you would provide it to image_tag

[Validate]