0.0
No commit activity in last 3 years
No release in over 3 years
Add shift-click selection to a list of checkboxes.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 3.1.0
 Project Readme

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.