Dynamic multipage menu links - Best practice

Hi,

Wondering if there is any better, more intuitive way of using a dynamic variable to populate my side bar menu items and their respective links.

So far I see 2 ways of doing it :

1- Use OnClick to get the path and NavigateTo(path)

2- Search through the IDs of my pages and use this in the path binding link of my items (which is kinda of a pain to do)

Any advice or recommendation ?

Thanks.

1 Like

Another great question! Let me check with the team and see how we can assist you. I will get back to you as soon as possible.

Thanks for your reply.

So far I’ve been using an array variable that is being populated depending on the authenticated_user_role
[{“ItemTitle”, “ItemIcon”, “ItemLink”}, …].

It works fine, but I’m not sure if it’s the best way to do it. Will wait your feedback. Thanks :wink: