Sha256: a7d78b5479e6beddc9a7eca86d2f39a132bce6d899b8bb3f1dc11df582ebad12

Contents?: true

Size: 1.64 KB

Versions: 1

Compression:

Stored size: 1.64 KB

Contents

# Bootstrap::Timepicker::Rails::Addon
This is the GEMified version of [bootstrap-timepicker](https://github.com/jdewit/bootstrap-timepicker)

bootstrap-timepicker-rails-addon project integrates Timepicker for Twitter Bootstrap with Rails 3 and 4 assets pipeline.

## Installation

Add this line to your application's Gemfile:

    gem 'bootstrap-sass', '~> 2.3.2.0'
    gem 'bootstrap-timepicker-rails-addon'

Or you can install from latest build:

```ruby
gem 'bootstrap-sass', '~> 2.3.2.0'
gem 'bootstrap-timepicker-rails-addon', :require => 'bootstrap-timepicker-rails-addon',
                                        :git => 'git://github.com/ywjno/bootstrap-timepicker-rails-addon.git'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install bootstrap-timepicker-rails-addon

## Usage

Add this line to app/assets/javascripts/application.js

    //= require bootstrap-timepicker

Add this line to app/assets/stylesheets/application.css

    *= require bootstrap-timepicker

Just call timepicker() with any selector in view.

```javascript
$('#timepicker').timepicker();
```

And here is the html code sample.

```html
<div class="input-append bootstrap-timepicker">
  <input id="timepicker" type="text" class="input-small">
  <span class="add-on"><i class="icon-time"></i></span>
</div>
```

Please view the bootstrap-timepicker <a href="http://jdewit.github.io/bootstrap-timepicker/">demos & documentation</a>.

## 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bootstrap-timepicker-rails-addon-0.3.0 README.md