Dynamic navigation to pages

I have a dashboard with a sidepanel:

  • dashboard
  • users
  • refunds
  • settings

Those options are an array of objects.

Inside weweb, I’ve named my page the same way I’ve named those options in the variable.

Here is what I want :
I want to navigate to my selected page dynamically.
Is that possible ?

I see that pages are listed, but there isn’t an array of page to look through them …

You can return your pages as an array by using Object.values(globalContext.pages) :smile:

1 Like

That’s exacly what I wanted. Incredible, Thanks Micah :clap: