JuliaGizmos / Escher.jl

Composable Web UIs in Julia
https://juliagizmos.github.io/Escher.jl
Other
337 stars 63 forks source link

Slider example #145

Open ahwillia opened 8 years ago

ahwillia commented 8 years ago

Does the tutorial/documentation for slider need to be updated? I am getting the following error while following the examples...

function main(window)
    push!(window.assets, "widgets")
    iterations = Signal(0) # The angle at any given time
    connected_slider = subscribe(slider(0:7), iterations)
end

Produces:

MethodError: `subscribe` has no method matching subscribe(::Escher.Slider, ::Reactive.Signal{Int64})
Closest candidates are:
  subscribe(::Any, ::Any, !Matched::Any)

I'm checked out on the latest master for both Reactive and Escher.

shashi commented 8 years ago

This is a recent API change. Just use subscribe(iterations, slider(0:7)). There was a deprecation and I think it was removed too soon.