Nagging Mario's Princess
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

sglide.range

1.3.0 • Public • Published

sGlide.range

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

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

// jQuery:
// $('#slider').sGlideRange({
// jQuery independent:
var my_sGlide_instance = new sGlideRange(my_element, {
	startAt: [20, 60],	// percentages of totalRange
	width: 600,
	height: 20,
	unit: 'px',
	totalRange: [58, 102],
	snap: {
		points: 5,
		marks: true
	},
	drop: function(o){
		// 'o' Object returned
	}
});

install

npm i sglide.range

Downloadsweekly downloads

6

version

1.3.0

license

GNU/GPL

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability