Non-uniform snap interval on flex slider?

Posted by Breck Fresen on Stack Overflow See other posts from Stack Overflow or by Breck Fresen
Published on 2010-05-01T23:32:02Z Indexed on 2010/05/01 23:37 UTC
Read the original article Hit count: 864

Filed under:
|
|
|

I'm currently using the Flex HSlider control. I'd like the slider to only allow the user to pick the values: [0, .5, 1, 2]

I can get it close to what I want by setting the snapInterval to .5 and by explicitly providing the tickValues. But that still allows the value 1.5 to be selected. Is there a way to provide explicit snapValues or to only allow entries in tickValues to be selected? Or do I have to roll my own slider?

Thanks in advance,

-- Breck

© Stack Overflow or respective owner

Related posts about adobe-flex-3

Related posts about flex