Reusable element (header) controlling a page element


I have button inside my header which I would like the user to be able to click to see a group within the same page.

I’m wondering if anyone knows the best way to do this? Not sure if it should be just toggling a page element or using tabs.

I’m looking to create navigation similar to airbnb’s, which you can see here.

Is there is way to achieve this, without having every value reset on the page if it is refreshed?

Thank you,

The only way to achieve this is with custom states on the reusable element, passing parameters to the URL, and conditional statements

Reusable elements custom states can be accessed by the page the reusable element is on and setting URL parameters will allow you to set those states to the user’s selections on page load. Once the states are set you can use conitional statements to show/hide the correct data.

1 Like

Great, thanks for the explanation!

This topic was automatically closed after 70 days. New replies are no longer allowed.