react-range-slider
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -20,3 +20,3 @@ var React = window.React = require('react'); | ||
<div id='main'> | ||
<RangeSlider max={200} step={10} value={['#FAD', '#FADFAD']} withBars range/> | ||
<RangeSlider value={[ '#42c6da','#3cb9ec','#42a5f5','#4a80df','#5c6bc0']} withBars/> | ||
</div> | ||
@@ -23,0 +23,0 @@ </div> |
@@ -181,2 +181,3 @@ var React = require('react/addons'); | ||
withBars: false, | ||
withCursor: false, | ||
pearling: false, | ||
@@ -367,5 +368,8 @@ disabled: false, | ||
renderCursors: function (offsets) { | ||
var handlers = offsets.map(function (offset, i) { | ||
var handlers = []; | ||
if(this.props.withCursor) { | ||
handlers = offsets.map(function (offset, i) { | ||
return this.renderCursor(offset, i + 1) | ||
}, this); | ||
} | ||
if (this.state.header) { | ||
@@ -372,0 +376,0 @@ handlers.splice(0, 0, this.renderCursor(this.calcOffset(this.state.min), 0, |
{ | ||
"name": "react-range-slider", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A flexible slider for reactjs.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
21062
577