Hello,
I have a list of sessions organized in an accordion (title visible, content hidden).
When I click on a title, the content of the session appears in the accordion.
In the content, I'd like to add a select field to quickly change the state of the session. It is easy to do, but I have a problem.
The select field is reproduced as many times as the number of sessions. And more the number of sessions, more the time to load the datas in the select field is long. If I wait for a minute to display the content of a session, I see the select field as I need. If I don't wait for a minute and display a session as soon as the list is loaded, the select field only show the id (foreign key) and I have to wait for a minute to see the label of the option.
So I thought about loading the select field only when I click on the title to display the content. So the loading would be quicker.
My select field is a component which is in another component.
How is it possible to tell VueJS to load this component only when I display the content of the accordion item ?
I really have no idea about how to do that.
Thanks for your help.
Vincent