You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's right - it does not make a lot of sense in most cases!
However, sometimes it can be useful to "trigger reactivity", for example:
@bind go Button("Go!")
data =let
go # we reference `go`, making this cell a dependency of the first cellrand(100)
end
sum(data)
When you click Go!, the other two cells start running. So it's useful when you have code that does something different every time (this example), or code that creates side effects, like writing to a file or appending to an array.
Hi,
can you please tell me how to use the Button? It always seems to have the value given as argument "label" to the constructor.
Thank you!, z.
The text was updated successfully, but these errors were encountered: