Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Add shift-click selection to a list of checkboxes.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 eligo-rails.gemspec
README.md

Eligo

Add simple shift-click multi-select to a list of checkboxes.

Build Status

Installation

Eligo is packaged as a gem that can be dropped into a Rails 3.1 app thanks to the asset pipeline. Add the eligo-rails gem to your Gemfile:

gem 'eligo-rails'

The JavaScript file shift_clickable is now available to require and use.

<ul>
  <li>
    <input type="checkbox">
    Arthur Dent
  </li>
  <li>
    <input type="checkbox">
    Ford Prefect
  </li>
  <li>
    <input type="checkbox">
    Tricia McMillan
  </li>
  <li>
    <input type="checkbox">
    Zaphod Beeblebrox
  </li>
</ul>
#= require shift_clickable

$ -> $('ul').shiftClickable()

Clicking on Arthur and then shift-clicking on Zaphod will also select both Ford and Tricia.

Something went wrong with that request. Please try again.