sglide.range

2.0.0 • Public • Published

sGlide.range

A derivative of sGlide. Select the range between custom min and max numbers. Returns selected range numbers and corresponding percentage values. Uses optional smart snapping. Apply your own CSS.

For details, visit home page.

Quickstart Guide: apply the following to an empty div with a unique id.

let callback = o => {};
let options = {
    startAt: [20, 60], // percentages of totalRange
    width: 90,
    height: 20,
    totalRange: [58, 102],
    snap: {
        points: 5,
        marks: true
    },
    drop: callback,
    onSnap: callback
});
 
// Standalone
let sGr_instance = new sGlideRange(el, options);
 
// or jQuery
$('#slider').sGlideRange(options);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    0
  • 1.3.0
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i sglide.range

Weekly Downloads

0

Version

2.0.0

License

GNU/GPL

Unpacked Size

274 kB

Total Files

18

Last publish

Collaborators

  • dkazmer