Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] Re: Vertical Dual Slider locking

Expand Messages
  • Aliaksei Feshchanka
    Luke, thanks for your example. I was trying to implement something like this: First, go to
    Message 1 of 3 , Apr 29, 2008
    • 0 Attachment
      Luke, thanks for your example. I was trying to implement something like this:
      First, go to
      and unselect "round" shape. You will notice that the cut slider will move it's upper thumb one position down.
      Thereafter, you will be able to move it within remaining range only. If you will select round shape again, it will restore it's normal state.
      It is done by changing internal starting position for the thumb; I think it is a bad practice and I'm afraid that it will mess up the internal state of the slider.

      P.S.  While dealing with vertical dual slider I've discovered that the width of the slider will affect  "minRange" property.
      In the example above, I'm using something like sl[0].minRange=-80;  I think it'a bug, because for vertical  slider the width of the slider should not affect minRange.

      ----- Original Message ----
      From: y_lsmith <lsmith@...>
      To: ydn-javascript@yahoogroups.com
      Sent: Monday, April 28, 2008 1:58:38 PM
      Subject: [ydn-javascript] Re: Vertical Dual Slider locking

      --- In ydn-javascript@ yahoogroups. com, "mrformer" <mrformer@...> wrote:
      > Hi! I know that it is possible to lock/unlock slider thumb using
      > lock() method. However, I need to implement different functionality:
      > to be able to lock slider thumb for movement in specific direction.
      > For example, I would like to lock upper thumb in the middle of the
      > slider background and allow it's movement between the middle and the
      > bottom only.
      > Any ideas on how to do that ?

      Boy am I glad you asked!  While putting together this example page  for you, I found a few bugs.  They will be patched in an upcoming release, but the workarounds are provided in the example.

      Hope this helps,

      Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
    Your message has been successfully submitted and would be delivered to recipients shortly.