1.3.1 • Published 10 years ago

time-range-slider v1.3.1

Weekly downloads
2
License
MIT
Repository
-
Last release
10 years ago

Demo

npm install
python -m SimpleHTTPServer

... and open the demo.

Reuse

npm install time-range-slider

And include like this:

<script src="node_modules/webcomponents.js/webcomponents.js"></script>
<link rel="import" href="node_modules/time-range-slider/time-range-slider.html">
<time-range-ruler min="8:15" max="19:00" border-color="darkblue"></time-range-ruler>
<time-range-slider min="8:15" max="19:00" color="lightblue" border-color="darkblue" border-radius="6px">
	<input type="text" name="start" value="9:00">
	<input type="text" name="end" value="18:00">
</time-range-slider>

For more details, see the demo.

Caveats

  • In general, the inputs inside the slider's light DOM are considered internal, so access/modify them only through time-range-slider methods
  • To programmatically change the values of the inputs, use e.g. slider.startValue = slider.parseTime('11:00'). See issue 3 for more details.
1.3.1

10 years ago

1.3.0

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.2

10 years ago

1.1.1

11 years ago

1.1.0

11 years ago

1.0.0

11 years ago