Multiple Range Interface
Multiple Range Interface is a jQuery plugin that creates an interface that allows the user to set multiple range based values.
It's useful for interacting with timeline based data like videos, slideshows, music, etc.
Install
bower install multiple-range-interface
Usage
HTML:
JS:
;
Methods
After the interface is initialized methods can be called on it like so:
;
addSection
Adds a new range section.
;
deleteSection
Deletes a range section by id.
;
getValues
Gets values for all range sections.
;
setValues
Sets values for given section id. The id
field must be present in the parameters object.
;
selectSection
Selects a range section by id.
;
getSelectedSection
Returns the data for the currently selected section.
;
Browser Support
The following browsers are what I've tested:
- Chrome
- Firefox
- Opera
If you find the plugin works in other browsers please let me know and I'll add it to the list. Likewise if it doesn't work in certain browsers please let me know.