Nested content in lists. Is there any specific method?

What I’m trying to do:
I want to create a list with nested sub-items that follow a hierarchy. Sorry if there’s already a solution, but I couldn’t find anything similar.

What I’ve tried and what’s not working:
I tried using manual nested repeating panels, with especific rules, but I only managed to do it by looping through all the items recursively when a checkbox is changed, and the performance was poor.

There’s this post: Super simple tree UI, using nested repeating panels, with expanding and contracting sub-lists

You might see the techniques they used.

3 Likes

There’s also a wrapper around a library called tabulator that has a nested tree structure option available:

Wrapper:

GitHub - anvilistas/tabulator: Anvil Wrapper for Tabulator

Original lib with nested data:

Nested Data | Tabulator

2 Likes

Interesting method he used, but it doesn’t apply well to my case, as my structures will be highly manipulable and without a clear limit. However, I was able to significantly improve performance with some of the ideas he had. Thank you!

2 Likes

Very cool! Unfortunately, there’s still no support for tree structures, but it’s already a big step! Thanks for the help!