I am brand new to LiveView, and I think it’s a fit for the problem I am trying to solve. I just went through the free portion of the Pragmatic Studios new course (Phoenix LiveView | The Pragmatic Studio) which is really good, but it seems like everything until the very last course is aimed at a self-contained LiveView application.
I need to do something a little different.
I have attached a diagram for clarity.
Let’s assume I have a list of cars, and that I am using bootstrap to set up my app. I would like to edit the details of each car when I click on it. I would like to have the edit form inside the modal’s content. When I click on the car link, the modal would need to be re-rendered as a form with that car’s content.
My questions are:
- Should the form inside the modal be a live view component? Is this how I render this?
- Can I send a message to that component from the car link to tell the component to grab the data from the selected car?
- Am I on the right track with this?
Thanks!