A gem for adding the tokenizing plugin, Bootstrap Tokenfield to the rails asset pipeline
Ruby
Switch branches/tags
Nothing to show
Permalink
Failed to load latest commit information.
lib [Version] Update version to be in alignment with source library Sep 23, 2015
vendor/assets [Assets] Updated to the latest library May 15, 2015
.gitignore Updated readme Nov 18, 2013
Gemfile Added gem config files and assets Nov 15, 2013
LICENSE.txt
README.md Update README.md Apr 12, 2016
Rakefile [Download] Added rake task to download files as per version Sep 23, 2015
bootstrap_tokenfield_rails.gemspec Updated gemspec and version accordingly Nov 18, 2013

README.md

Bootstrap Tokenfield Gem for Rails

This gem tokenizes your input field, allowing the user to input and manage multiple values into the input field effortlessly, by Icicle.

For more information on this gem visit Bootstrap Tokenfield Rails gem.

Installation

Add this line to your application's Gemfile:

gem 'bootstrap_tokenfield_rails'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install bootstrap_tokenfield_rails

Add this line to your application.js file

//= require bootstrap-tokenfield

Add this line to your application.css file

*= require bootstrap-tokenfield

Features

  • Copy & paste tokens with Ctrl+C and Ctrl+V
  • Keyboard navigation, delete tokens with keyboard (arrow keys, Shift + arrow keys)
  • Select specific tokens with Ctrl + click and Shift + click
  • Twitter Typeahead and jQuery UI Autocomplete support

Usage

Given an input field, add a class of your choice to it.

<input type="text" class="tokenize">

Then tokenize the input field as follows.

$('input.tokenize').tokenfield();

Check out the demo and docs.

Screenshot

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

Contributors

Akash Devaraju

Ragulka

License

Available under the MIT License.

About Icicle Technologies

Icicle Technologies