Skip to main content

Notifications

Community site session details

Community site session details

Session Id : +WdCcq44ecJLp0zxsQDCuu
Power Apps - Power Apps Experimental Features
Suggested answer

Component Creation - Best Practice

Like (0) ShareShare
ReportReport
Posted on 28 Mar 2025 12:39:29 by 3
Hello everyone,
I need your help! ๐Ÿ˜Š
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:
  1. 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>.
  2. 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?
Thanks in advance! ๐Ÿ˜Š
 
 
  • Suggested answer
    Michael E. Gernaey Profile Picture
    38,255 Super User 2025 Season 1 on 29 Mar 2025 at 03:10:08
    Component Creation - Best Practice
     
    Thank you for posting and welcome!
     
    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.
     

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.

Helpful resources

Quick Links

๐ŸŒธ Community Spring Festival 2025 Challenge ๐ŸŒธ

WIN Power Platform Community Conference 2025 tickets!

Markus Franz โ€“ Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Communityโ€ฆ

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,513 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,681 Most Valuable Professional

Leaderboard

Featured topics

Loading started