Closed cmey closed 8 years ago
yep
function main(window)
push!(window.assets, "widgets")
switch = Signal(false)
eventloop = fpswhen(switch, 30)
vbox(
checkbox() >>> switch, # could also be a togglebutton
map(eventloop) do _
...
end
)
end
@dioptre here's an example for you
I can create an event loop:
eventloop = every(1/5)
and then map over it:but what I'd like is to display the animation only once (when I click on a button). Is there a cool way to do that?