I’m building a custom canvas component - the majority of which is established and working well. I wanted to dynamically load other custom components based on user actions. Is this possible?
For example - the user can click a button to add my “CustomComponent-2” (installed to WeWeb via my GitHub repo), or press another button to add “CustomComponent-3”. They can even add multiple instances of the same component.
Is this at all possible to load a custom component as a child of another component on the front end based on user interaction?
Hi,
it is possible to render a child component, but creating a new one is a editor only action, as it required to update your WeWeb database.
If you want this action to be an editor one then yes. If you want it to be dynamic its not possible at the moment.
What we usually do is create a bunch of some and conditionally render one or the other depending on a condition, and passing data to handle several instances