| Module | CalendarDateSelect |
| In: |
lib/calendar_date_select/version.rb
lib/calendar_date_select/calendar_date_select.rb lib/calendar_date_select.rb |
| VERSION | = | "2.1.2" |
| FORMATS | = | { :natural => { :date => "%B %d, %Y", :time => " %I:%M %p" |
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)