Is there any way to download files locally in Comp...
# compose-web
e
Is there any way to download files locally in Compose Web?
1
b
How do you mean?
e
I want to download a file (via a button) from the web, into the users computer.
b
Ah, it has nothing to do with compose then. Just google how to do that via plain browser apis
One of many ^^^
e
How can I assign this to the onClick of the button? Via an ID?
b
Just regular compose onClick should work. It's available in attrs lambda
e
Yes, I know but I don't know how to call this javascript function in Kotlin
b
You don't call js, it's just an example how to use web apis
Kotlin has bindings for those apis already, so just use those
e
Okay, thank you very much 🙂
b
Good luck