dynamic - YUI range slider separate ticksize for subranges -
my requirement typical. need price range dual-handle slider, based on current handle value, tick size (step size) change, example if price less 1500, tick size 50. between 1500 , 15000, tick size should become 100, between 15000 50000 tick size should become 500, , on. have achieved jquery, there other issues (like auto adjust of other handle), cannot solve. using yui. there way change tick size based on value of current handle? welcome.
presuming mean pixel distance thumb hops when dragged, try this:
var thumb = dualslider.maxslider.thumb; thumb.setxconstraint(thumb.leftconstraint, thumb.rightconstraint, newticksize);
if mean value corresponds thumb placement uses different conversion factor pixel position "real" value, need implemented in function built translation.
Comments
Post a Comment