Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

range-slider

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

range-slider

A simple range slider UI element for use with browserify

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
62
decreased by-38.61%
Maintainers
1
Weekly downloads
 
Created
Source

range-slider experimental

A simple range slider UI element for use with browserify.

view example

Usage

NPM

This module expects a "wrapper" element, and creates the slidable part on the inside, which will take up the full size of its parent. Note that if the parent doesn't have position: relative|fixed|absolute set, this will be set to relative on your behalf.

inner = range(slide, [inital], update)

Returns the slider's inside DOM element, where slide is a parent element that you've already created.

initial is an optional value between 0 and 1 for determining where to start the slider. update(value) is a function that's called every time the slider's value changes – the value will always be a number between 0 and 1, where 0 is the left side of the slider and 1 is the right.

License

MIT. See LICENSE.md for details.

Keywords

FAQs

Package last updated on 29 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc