npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ember-range-slider

v0.1.0

Published

A horizontal slider component with two handles that allows for visually selecting a range from within a specified min and max.

Downloads

5

Readme

Ember Range Slider Build Status Ember Observer Score

This ember-cli addon provides a horizontal slider component with two handles that allows for visually selecting a range from within a specified min and max.

[TODO: Animated GIF here]

Supported interactions include pressing (or touching) and dragging either handle, as well as tapping on the slider track to adjust the nearest slider handle to the new location.

The component follows a data down / actions up approach and uses hammer.js to handle the touch and mouse interactions.

Live Demo

View a live demo here: http://collectrium.github.io/ember-range-slider/

Example

{{ember-range-slider
  min=rangeMin
  max=rangeMax
  start=start
  end=end
  rangeChanging=(action 'rangeSliderChanging')
  rangeChanged=(action 'rangeChanged')
  isSlidingChanged=(action (mut isSliding))
}}

Data down

min and max are numeric values that define the values associated with the left and right edge of the slider.

start and end are numeric values assigned to the left and right handle.

Actions Up

The rangeChanging action is fired with start and end values continuously as the user slides a handle along the range.

The rangeChanged action is fired with start and end values when a range change is "committed", i.e. when the user releases the slider handle.

The isSlidingChanged action is fired with true as the user begins sliding a handle and again with false when the user releases the handle.

Development Setup

Installation

  • git clone this repository
  • npm install
  • bower install

Running Tests

  • ember try:testall
  • ember test
  • ember test --server

NOTE: Tests currently run successfully in-browser, but not headless in PhantomJS due to an error with new MouseEvent. It would be fantastic to fix this.

Running the dummy app

  • ember server
  • Visit your app at http://localhost:4200.

For more information on using ember-cli, visit http://www.ember-cli.com/.

Credits

This addon was extracted from a prototype project at Collectrium. Contributions from @lukemelia, @chrislopresto and @leahdungo.