Bootstrap 4 Datetime Picker
This is just a simple wrapper gem for Tempus Dominus Bootstrap 4, @see https://github.com/tempusdominus/bootstrap-4. This version of the datetime picker is styled to look like the version from Bootstrap 3.
Usage
For usage information, please @see https://tempusdominus.github.io/bootstrap-4/Usage/
Dependencies
This gem includes momentjs-rails and moment-timezone-rails. These two libraries are pretty much required to get the datetime picker to work out of the box.
NOTE:
font-awesomewas removed as a dependency. If you wish to usefont-awesomeby default, you will need to include the gem in your Gemfile.
Installation
Add this line to your application's Gemfile:
gem 'bs4_datetime_picker'And then execute:
$ bundle installOr install it yourself as:
$ gem install bs4_datetime_pickerTo install it in your Rails application:
assets/stylesheets/application.scss
/*
*= require bs4-datetime-picker
*/
@import "font-awesome";assets/javascripts/application.js
//= require moment
//= require bs4-datetime-pickerNOTE:
Examples assume that you already have
jQueryandBootstrap 4setup in your application.
Contributing
If you wish to contribution, send PRs to https://github.com/rdavid369/bs4-datetime-picker/pulls
License
The gem is available as open source under the terms of the MIT License.