Can you build hierachy?

Hi everyone,
Let’s say we have a ‘Person’ object with three fields: ‘name’ , ‘age’ and ‘children’ The ‘children’ contains an array of ‘Person’ objects. So you can have childs and child’s childs and so on. So the user could build an entire family tree and with as many levels as he wants.
Is it possible?

[original thread by Norberg95]

Hi @norberg95(norberg95) ,
yes this is possible. The main issue here is, that you need a good looking component for the children property which also works great for deeper nesting. You could try the ListWithDetail renderer.
An alternative would be using a tree, like GitHub - eclipsesource/jsonforms-react-material-tree-renderer . It is a bit outdated though.

Best,
Eugen

[Norberg95]

Thank you Eugen. The tree renderer is a great idea.