shaun
2
This might be what you’re looking for:
It’s a tree that looks similar to yours, constructed from a set of hierarchical nodes that are linked together using a parent
field.
You can add items dynamically by calling add_item
, which does add_component
to the parent node.
(Thanks to @stefano.menci for sharing)