Skip to main content

Hi all,

I have a frame with many interactive components, including a tree view with different levels of collapsible elements.

When presenting, i can open or collapse any level.

Now i need 2 buttons/actions : one to open all items, and one to collapse them all.

What i did for now is I created 2 frames : Frame1 with all items closed, and Frame2 with all items opened.

And 2 buttons : “Open all” that navigates to Frame2, and “Close all” to Frame1


Problem is : when i’m in Frame1, i can open any item i want.

How to make the “Close all” button working on this frame?


“Logical” way would be to add an interaction to navigate to frame1, checking “reset component state”.

But you can’t link to the same page you’re in.


Any idea ?

(ideally without using variables to record each individual open/close state for each level)


Thanks !

I would think about trying this: putting your individual interactive comps into another component set with all of them together. You would likely need a variant for each comp’s open state and use the “change to” action to go between them. And then one with all closed and all open where you can have those two buttons navigate to.


Thanks, that might do the trick indeed !


Reply