GithubHelp home page GithubHelp logo

jimjames99 / bootstrap3-datetimepicker-rails Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trevors/bootstrap3-datetimepicker-rails

0.0 1.0 0.0 280 KB

This gem packages the bootstrap-datetimepicker for the Rails 3.1+ asset pipeline.

License: MIT License

Ruby 100.00%

bootstrap3-datetimepicker-rails's Introduction

bootstrap3-datetimepicker-rails

Gem Version

This gem packages the bootstrap-datetimepicker for the Rails 3.1+ asset pipeline.

Eonasdan's fork of tarruda's bootstrap-datetimepicker is actively maintained and works with Bootstrap3.

momentjs-rails is a required dependency.

Installation

Add these lines to your application's Gemfile:

gem 'momentjs-rails', '>= 2.9.0'
gem 'bootstrap3-datetimepicker-rails', '~> 4.17.43'

And then execute:

$ bundle

Or install it yourself:

$ gem install momentjs-rails
$ gem install bootstrap3-datetimepicker-rails

To start using the bootstrap-datetimepicker plugin in your Rails application, enable it via the asset pipeline.

If your server is running, you will need to restart Rails before using the gem.

Add the following to your JavaScript manifest file (application.js):

//= require moment
//= require bootstrap-datetimepicker

If you want to include a localization, also add:

//= require moment/<locale>

Add the following to your style sheet file:

If you are using SCSS, modify your application.css.scss

// import bootstrap-sprockets before bootstrap if using bootstrap >= 3.2
@import 'bootstrap-sprockets';
@import 'bootstrap';
@import 'bootstrap-datetimepicker';

If you're using plain CSS, modify your application.css

*= require bootstrap
*= require bootstrap-datetimepicker

Usage

Check out the documentation at: http://eonasdan.github.io/bootstrap-datetimepicker/

Problems

Clone https://github.com/TrevorS/bs3dp-test and try to reproduce your issue.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

bootstrap3-datetimepicker-rails's People

Contributors

trevors avatar abhishekbose87 avatar adiel avatar salkar avatar jimjames99 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.