Genie Discord forum

I found @event
macros, how it works?

yes actually this is very recently(~2 weeks ago) contributed by Helmut. I need to check how this works. I'll get back to you.

To check how events
work. You can look at this example: https://github.com/GenieFramework/StippleDemos/blob/master/ReactiveTools%20API/FileUpload.jl

I'll try to document it. I don't understand completely how this works yet
What I think is uploader
has uploaded
event. Which basically triggers a method
@uploaded -> function(info)

and this is trying to achieve that same functionality
julia> uploader("Upload files", url = "/upload" , autoupload = true, :multiple,
@on(:uploaded, :uploaded, "for (let f in event.files) { event.files[f].fname = event.files[f].name }")
)
"<q-uploader url=\"/upload\" auto-upload multiple v-on:uploaded='function(event) { ;const preprocess = (event) => { for (let f in event.files) { event.files[f].fname = event.files[f].name }; return event };; handle_event(preprocess(event), \"uploaded\");}'>Upload files</q-uploader>"

v-on:uploader
is basically @uploader

@hhaensel correct me if wrong

and on uploaded
it reads check if file endswith
regex csv
and insert csv into df
and @onchange
df it updates the table to render data