Skip to content

onrooby/flatpickr-rails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flatpickr

Gem Version

Flatpickr is a lightweight and powerful datetimepicker with no dependencies. This gem packages flatpickr's assets for drop-in use in Rails applications.

Installation

Add this line to your application's Gemfile:

gem 'flatpickr'

And then execute:

$ bundle

In your application.css, add the following:

*= require flatpickr

/* Optionally, you can include any of the flatpickr themes by adding in their styles, like so: */
*= require flatpickr/themes/dark

And in your application.js:

//= require flatpickr
//
// Locales can be included like so:
//= require flatpickr/l10n/da

To initialize flatpickr:

flatpickr('.your-selector');

// if using jQuery
$('.your-selector').flatpickr();

See flatpickr's docs for configuration and usage info.

License

The gem is available as open source under the terms of the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 97.4%
  • Shell 2.6%