-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,13 +67,10 @@ struct Slider{T <: AbstractRange, ET} <: AbstractWidget{T} | |
attributes::Dict{Symbol, Any} | ||
end | ||
|
||
to_node(x) = Observable(x) | ||
to_node(x::Observable) = x | ||
|
||
function Slider(range::T, value = first(range); kw...) where T <: AbstractRange | ||
Slider{T, eltype(range)}( | ||
to_node(range), | ||
to_node(value), | ||
convert(Observable, range), | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
SimonDanisch
Author
Owner
|
||
convert(Observable, value), | ||
Dict{Symbol, Any}(kw) | ||
) | ||
end | ||
|
@SimonDanisch This here doesn't seem to work:
at least for the latest release of Observables
v0.2.3
. In fact, you can't seem to convert anything into anObservable
like that. You have to wrap it in anObservable
:Sorry, I'm sure you know this. I might be missing something.