Replies: 3 comments
-
Unfortunately there's currently no good way of handling Phoenix forms in with LiveSvelte. I'd be up for adding Svelte specific components that handle Phoenix forms out of the box, but that work hasn't been done. PR's are always welcome if anyone is up for it though! |
Beta Was this translation helpful? Give feedback.
-
I've decided to take a crack at it. I have been able to translate most of the core components. A few considerations...
I am going to fork the project and add my work so far, including a usage example utilizing a changeset. Would you like me to put my changes is dedicate branch or is the main branch of my fork sufficient? |
Beta Was this translation helpful? Give feedback.
-
Super cool, thanks for contributing.
Main branch of your fork will work! Whatever is most convenient to you. |
Beta Was this translation helpful? Give feedback.
-
I was seriously considering using LiveSvelte for my current project. It would be a good fit for my SPA. But I ran into a snag. I could not find any info on how to handle forms -- and I don't mean just a couple of inputs which I can hand code end-to-end form scratch. I have close to 100 inputs in my (tabbed) form, so I need relatively smooth and seamless integration with the backend.
Is there any current thought on how to approach this? Is it simpler than I am imagining? That is, we need a bunch of specially designed Svelte input components made to interface with the
to_form(my_struct)
data that would be sent to the client?Beta Was this translation helpful? Give feedback.
All reactions