Collapse or expand all tree node

Hi,   we want to be able to collapse or expand multiple tree nodes in one go. The treenodes are stacked, but if we could collapse all the top ones with a button that would be be great.    My idea was to make a button that toggles a boolean attribute of an Entity ‘CollapseExpandConfig’.  And then use the dynamic classes of the first stacked treenode to change the content-visibility. But then I would also have to make an on-click microflow to expand a single one after collapsing all, to make it visible again.   this all seems like a lot, and I was wondering if there is an easier or better way?
0 answers