PDA

View Full Version : Slider : color between two ticks



florent35
6 Jun 2015, 3:07 AM
Hi,

I am using multi slider in my application (two picks) and i want to know if there is any possibility to color the slider area between 2 picks in a color. Of course i need the color automatically adapts when pick is dragged.

Thanks.

joel.watson
7 Jun 2015, 2:29 PM
Hi--

Out of the box, no, that's not possible. You could conceivably hook into one of the events, though, and create a mechanism that would inject some absolutely positioned element that would represent the area between the absolutely positioned thumbs. On each change of one of the slider values, you could increase or decrease the size of the colored area, change the color, or whatever else you'd like.

I hope that helps give you a place to start!

Thanks
Joel

tristan.lee
29 Oct 2015, 8:18 PM
As Joel mentioned, nothing like this exists out of the box. I put together an example for another user that sounds similar to this. Check it out to see if it fits your needs: https://www.sencha.com/forum/showthread.php?306026-Slider-Color-between-thumbs&p=1118868