I'm trying to increase the usage of PowerApps components in my apps to be more agile in customization and implementation. Currently, I'm working on developing a left-hand vertical menu for my apps, which will allow users to navigate between screens.
I would like to request your guidance on the best practices for developing this component.
Specifically, for the vertical menu, I'm creating a component that will mainly consist of a vertical gallery displaying a table with the following columns: "PageName", "PageID", "PageIcon" (using SVG icons), and "PageNavigation" (the name of the app screen to navigate to when the gallery button is pressed).
I see two ways to achieve this:
Way 1: Create a table-type property for the component (let's call it "MenuList"), set this property with a Table() containing the information listed above, and then set the Gallery's Item property to<Component.MenuList>.
Way 2: Set the Table() directly in the Gallery's Item property.
Question: Is it better to prefer Way 1 or Way 2? Could you please advise on the pros and cons of each approach?
Tiny suggestion, in the future, if you post a picture of what you are trying to build (even a mock) it really helps just ot make sure we do not miss anything.
If you are looking to use a Dynamic approach to setting the "galleries" menu items, then you are going to have to use a Property as in #1 and set that in the Items
This is a better approach so that you do not have to turn on Scope Access. As the only way you would set the "menu's" items property directly..
You are doing super well using Option 1. If you have other questions, or specific design ones, please feel free to post another question and share them and you can even At directly.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.