Happy new Year!!
Is it possible to create recursive components using weweb?
I would like to display the whole structure of a file system containing folders within folders (or files within folder)
I would appreciate very much any resources available.
Hi,
yes this is possible, the only limitation is that the recursion cannot be more than 10 (this is a security limitation for accidental infinite loop)
You just have to define your differents inputs/params, and then drag and drop a component instance inside itself and bind the children input with your logic
Hello, @aurelie. Thank you for the response. I think I got it almost right. but I can’t figure out how to collapse all children when the parent collapses, as shown in the video below. I would like it all to collapse, and when I expand a parent again, the child should expand only if I ask it to collapse when clicking the button. Do you have any idea how I could go about it?
Hmm using conditional rendering on the children component should do what you wish? You can bind it to your ‘collapsed’ internal variable