range-select
Range select a group of items., (*1)
Table of contents
Quick start
Several quick start options are available:, (*2)
What's included
Within the download you'll find the following directories and files, logically grouping common assets and providing both compiled and minified variations. You'll see something like this:, (*3)
range-select/
├── range-select.js
├── range-select.min.js
Example
Example range select usage:, (*4)
Demo: https://adrianmejias.com/range-select, (*5)
<!-- Include jQuery Beforehand -->
<script src="range-select.js"></script>
<link href="range-select-example.css" rel="stylesheet">
<ul data-toggle="range-select">
<li class="range-item">Item 1</li>
<li class="range-item">Item 2</li>
<li class="range-item">Item 3</li>
<li class="range-item">Item 4</li>
<li class="range-item">Item 5</li>
</ul>
$('[data-toggle=range-select]').rangeSelect();
Available options
-
selector
: string Element item that will be selectable.
-
toggle
: object|string Create your own toggle function.
-
activate
: object|string Create your own activate function.
$('[data-toggle=range-select]').rangeSelect({
selector: '.range-item',
toggle: function(self, this, index, prev_index) {
console.log('Item toggled.');
},
activate: function(self, this, index, prev_index){
console.log('Item activated.');
}
});