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
I find the loading indicator of the btn really useful feedback. It tells the client that the download is progressing, which is important when the size of the downloaded asset is large.
In the following MWE I attempted to connect the download event to the loading state of the btn, but this naive approach did not work:
using Stipple, Stipple.ReactiveTools
using StippleUI
using StippleDownloads
const asset =rand(UInt8, 10^7) # 10 MB@app@event download_event download_binary(__model__, asset, "name"; client = event["_client"])
ui() =btn("Download", @on(:click, :download_event, :addclient), loading=:download_event)
@page("/", ui)
up()
What would be the idiomatic way to achieve this?
The text was updated successfully, but these errors were encountered:
I find the
loading
indicator of thebtn
really useful feedback. It tells the client that the download is progressing, which is important when the size of the downloaded asset is large.In the following MWE I attempted to connect the download event to the
loading
state of thebtn
, but this naive approach did not work:What would be the idiomatic way to achieve this?
The text was updated successfully, but these errors were encountered: