We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't figure how to update more than one widget on some event. A simplified model of my program is as follow:
Here is working example. Problem is that observables in function map! are passed as values and cannot be changed within the function.
map!
using Interact using Blink using GRUtils function plot_data(limits, data_x, data_y, textsum) l = limits[1] r = limits[2] fig = Figure((640, 480), "pix") plot(data_x, data_y, "-o", markersize=0.2) hold(true) plot([l, l], [minimum(data_y)-1, maximum(data_y)+1], "r--", linewidth=2) plot([r, r], [minimum(data_y)-1, maximum(data_y)+1], "g--", linewidth=2) ylim(0, maximum(data_y) + 1) s = sum(data_y[l+1:r-1]) # How to update textsum? # textsum[] = string(s) fig end plt = Observable{Any}(dom"div"()) data_x = Observable{Any}(0:1000) data_y = Observable{Any}(rand(0:100, length(data_x[]))) limits = rangepicker(0:1000) textsum = textbox("") throttle(1.0, limits) map!(plot_data, plt, limits, data_x, data_y, textsum) ui = dom"div"(plt, limits, textsum) w = Window() body!(w, ui)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I can't figure how to update more than one widget on some event. A simplified model of my program is as follow:
Here is working example. Problem is that observables in function
map!
are passed as values and cannot be changed within the function.The text was updated successfully, but these errors were encountered: