Closed rutfin closed 6 years ago
Hi,
I have also been looking for similar solutions. Did it work?
You can already do that with custom handles, e.g.
React.render(
<ReactSlider withBars>
<div style={{ backgroundColor: 'red' }}>1</div>
<div style={{ backgroundColor: 'green' }}>2</div>
<div style={{ backgroundColor: 'blue' }}>3</div>
</ReactSlider>,
document.body
);
Hi guys, is it possible to set the BAR colours as parameter when setting the value or at least sending as an Array, so it will work when setting colours dynamically (No depending on CSS class bar-1, bar-2...).
I mean can we set them in the property Value: [{ value: 5, color: red }]
or send a new Array
value:[5, 20, 30] withBars barColour:['red', 'blue', 'yellow']
I Just added a temporary fix.
709 Line