Sha256: 7b0750979dd16da84970f231aa5218d25690cbe8a602e919eff99f86ec910fd4

Contents?: true

Size: 1.08 KB

Versions: 32

Compression:

Stored size: 1.08 KB

Contents

# flatpickr

[![Gem Version](https://badge.fury.io/rb/flatpickr.svg)](https://badge.fury.io/rb/flatpickr)

[Flatpickr](https://github.com/chmln/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:

```ruby
gem 'flatpickr'
```

And then execute:

```bash
$ bundle
```

In your application.css, add the following:

```sass
*= 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:

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

To initialize flatpickr:

```js
flatpickr('.your-selector');

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

See [flatpickr's docs](https://chmln.github.io/flatpickr/) for configuration and usage info.

## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
flatpickr-3.0.7.0 README.md
flatpickr-3.0.0.0 README.md
flatpickr-2.6.3.0 README.md
flatpickr-2.6.2.0 README.md
flatpickr-2.6.1.0 README.md
flatpickr-2.6.0.0 README.md
flatpickr-2.5.9.0 README.md
flatpickr-2.5.8.0 README.md
flatpickr-2.5.6.0 README.md
flatpickr-2.5.5.0 README.md
flatpickr-2.5.4.0 README.md
flatpickr-2.5.3.0 README.md
flatpickr-2.4.9.0 README.md
flatpickr-2.4.8.0 README.md
flatpickr-2.4.7.0 README.md
flatpickr-2.4.5.0 README.md
flatpickr-2.4.4.0 README.md
flatpickr-2.4.3.0 README.md
flatpickr-2.4.2.0 README.md
flatpickr-2.4.0.0 README.md