jQWidgets Forums

This topic contains 5 replies, has 3 voices, and was last updated by  SarahLou 8 years, 9 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • change slider step #1267

    sushant
    Member

    What I need to set to change the slider’s step when clicking the buttons ?

    Cheers,
    Sushant

    change slider step #1280

    Peter Stoev
    Keymaster

    Hi Sushant,

    jqxSlider has a ‘step’ property which defines the slider’s increase/decrease step.

    $('#jqxslider').jqxSlider({ step: 25 });

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    change slider step #85966

    SarahLou
    Participant

    Hello team,

    I was wondering if it was possible to have multiple sliders (3 for example) which are depending on each other’s values. Like their total sum should always equal 1. Thus, changing the value of one of them involve changing automatically one or both values of the others so as to always keep the total sum = 1.
    If you have any idea of how I can do this, please let me know. Much appreciated it.

    Thank you,
    Sarah

    change slider step #85975

    Peter Stoev
    Keymaster

    Hi Sarah,

    You can use the Slider’s API to dynamically set values of the Slider in the code. For example, you can use the “val” method.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    change slider step #86017

    SarahLou
    Participant

    Thank’s Peter! I will try it.

    Cheers,
    Sarah

    change slider step #86225

    SarahLou
    Participant

    Hello team,

    I’m facing a little problem about the total of three slider’s values equals 1.
    Here you can see the code: https://www.jseditor.io/?key=pie-chart-sliders-same-row-problem-1-2

    This code faces a bug somehow. I think it’s when I’m setting the value, it’s telling that there is a change in the slider so it’s entering in the other slides change method etc etc…

    Is calling setValue is actually considered as changing the value?
    How can I handle that in another way?

    Cheers,
    Sarah

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.