[IPOL discuss] update in the demo scrollbar

Miguel Colom colom at cmla.ens-cachan.fr
Tue Apr 15 11:18:35 CEST 2014


Quoting Vincent Le Guen <vleguen1 at gmail.com>:
> Hi,
>
> In the demo python code, where can we change the range and the stepsize of
> the scrollbar used for the parameters ?
>
> Thanks

Hi Vincent,
you can change the minimum, maximum and step of the control in the  
file template/params.html
In your demo #103, it's in line #24:
     { createLinkedSlider('#scale_selector', '#sliderScale', 1.0,  
10.0, 0.1); });

1.0 is the minimum, 10.0 the maximum and 0.1 the step. You can put any  
values you need there.

Best,
Miguel





More information about the discuss mailing list