#How to customise <.live_file_input>
1 messages · Page 1 of 1 (latest)
I fully customized my file inputs without much issue. There are some tricks and nuances to it, but I don't remember having any showstoppers
but also, it does support class, see the docs: https://hexdocs.pm/phoenix_live_view/Phoenix.Component.html#live_file_input/1
Global attributes are accepted.
this means all standard global HTML attributes (like class or style) are passed through
also see how you can extend it with a drop-target too, which can be a separate element
it doesn't have to surround the input either, like the example shows, it can be a sibling element
Ok I'm getting there, however I'm having trouble integrating liveview with the native html form file input, IE you'll see it says no files chosen.
Is it possible to make that update iwthout javascript using liveview?