Socket
Book a DemoInstallSign in
Socket

simple-form-datepicker

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-form-datepicker

bundlerRubygems
Version
0.1.3
Version published
Maintainers
1
Created
Source

= simple-form-datepicker

  • {Homepage}[https://rubygems.org/gems/simple-form-datepicker]
  • {Documentation}[http://rubydoc.info/gems/simple-form-datepicker/frames]
  • {Email}[mailto:paul at tymate.com]

{Gem Version}[http://badge.fury.io/rb/simple-form-datepicker]

== Description

Provides an easy to use date picker for SimpleForm.

== Features

  • Easy to use.
  • Localizable with I18n and I18n-js.

== Examples

require 'simple-form-datepicker'

=== In your simple forms

= f.input :date_attribute, :as :datepicker

=== In app/assets/javascripts/application.js

//= require jquery.ui.all

or

//= require jquery.ui.datepicker

Also load localisations for JQueryUI's datepicker:

//= require jquery.ui.datepicker-en //= require jquery.ui.datepicker-es //= require jquery.ui.datepicker-fr

Initialize JQueryUI's datepicker:

$("input.datepicker").each(function(input) { $(this).datepicker({ dateFormat: "yy-mm-dd", altField: $(this).next() })

// If you use i18n-js you can set the locale like that
$(this).datepicker("option", $.datepicker.regional[I18n.currentLocale()]);

})

=== In app/assets/stylesheets/application.css

*= require jquery.ui.datepicker

== Requirements

  • simple_form
  • JqueryUI / jquery-ui-rails

== TODO

  • How to use with i18n-js.

== Install

$ gem install simple-form-datepicker

== Copyright

Copyright (c) 2013 Paul d'Hubert

See LICENSE.txt for details.

FAQs

Package last updated on 04 Nov 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts