OK, there is a problem with this:
the new slider that gets created every time we update u doesn’t update l. l 
gets updated only after we try to change its subscribed slider, not before. 
This is problematic because I lifted l and u and if they’re overlapping 
then I get errors.
I’ll get back to this…

On Wednesday, November 4, 2015 at 11:43:08 AM UTC+10, Yakir Gagnon wrote:

I thought others might find this useful:
> Two sliders that don’t overlap. The second’s upper bound is automatically 
> adjusted so not to overlap with the first’s value. 
>
> u = Input(100)
> l = Input(0)
> function main(window) 
>     push!(window.assets, "widgets")
>
>     vbox(slider(1:100, value = 100) >>> u,
>     consume(u) do x
>         slider(0:(x - 1), value = 0) >>> l
>     end
>     )
> end
>
> ​
>
​

Reply via email to