The increment option is a way to manually map the pixel dimensions of
the slider to object-level values for your data model. Usually, this
is worked out automagically by the control, by dividing the max value
by the actual on-screen width of your slider track. No matter how high
your max value is, the slider can only be moved a minimum of one pixel
at a time in the UI, so that's the finest "grain" of your slider. If
you had a lower max value, or a seriously wider slider, you might be
able to see this working the way you expect.
Walter
On Sep 6, 2010, at 2:27 AM, TK wrote:
Yeah i know that, but the question is why there is a option which is
doing almost the thing i wanna realize but it isnt working?
And if you wanna use a slider from 0 to 10.000.000 and you got
millions of steps? Than you use an array with millions values?
That cant be the solution, so thats why im asking if there are some
informations why it isnt working...
But anyway thank you very much for your answer.
best whishes
On Sep 5, 8:34 pm, Walter Lee Davis <[email protected]> wrote:
Try the values option. Set it to an array of [0,1000,2000 ... ] and
your slider will "stick" at those options, like detents in an f-stop
ring on your camera.
Walter
On Sep 2, 2010, at 2:51 AM, TK wrote:
I wanna make a slider which is working like a discrete slider.
That means that i have a range from 0 to 100.000 and the values
should
only be 0,1.000,2.000,3.000,4.000...and so on.
I know that there is a option for the sliders called "values", but
that cant be the solution. Because if i have a slider from 0 to
1.000.000 and the steps should be 0,100,200,300,400,500...and so
on, i
would have 10.000 values in the "values"-option.
So i saw herehttp://wiki.github.com/madrobby/scriptaculous/slider
that there is the option called "increment" and the description is
the
functionality i am searching for.
"Defines the relationship of value to pixels. Setting this to 1 will
mean each movement of 1 pixel equates to 1 value. "
But it istn working, ive tested around so much hours...maybe anyone
here can help me or tell me more about it?
Thanks in advance
TK
--
You received this message because you are subscribed to the Google
Groups "Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
.
To unsubscribe from this group, send email to
[email protected]
.
For more options, visit this group
athttp://groups.google.com/group/prototype-scriptaculous?hl=en
.
--
You received this message because you are subscribed to the Google
Groups "Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
.
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en
.
--
You received this message because you are subscribed to the Google Groups "Prototype
& script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.