Skip to main content
Microsoft logo
Power Apps
    • AI Builder
    • Automate processes
    • Azure + Power Apps
    • Build apps
    • Connect data
    • Pages
    • Take a guided tour
  • Pricing
    • Overview
    • Become a Partner
    • Find a Partner
    • Find partner offers
    • Partner GTM Resources
    • Blog
    • Customer stories
    • Developer Plan
    • Documentation
    • For IT Leaders
    • Roadmap
    • Self-paced learning
    • Webinars
    • App development topics
    • Overview
    • Issues
    • Give feedback
    • Overview
    • Forums
    • Galleries
    • Submit ideas
    • User groups
    • Register
    • ·
    • Sign in
    • ·
    • Help
    Go To
    • Power Apps Community
    • Welcome to the Community!
    • News & Announcements
    • Get Help with Power Apps
    • Building Power Apps
    • Microsoft Dataverse
    • AI Builder
    • Power Apps Governance and Administering
    • Power Apps Pro Dev & ISV
    • Power Apps Portals
    • Connector Development
    • Power Query
    • GCC, GCCH, DoD - Federal App Makers (FAM)
    • Power Platform Integration - Better Together!
    • Power Platform Integrations
    • Power Platform and Dynamics 365 Integrations
    • Community Blog
    • Power Apps Community Blog
    • Galleries
    • Community Connections & How-To Videos
    • Community App Samples
    • Webinars and Video Gallery
    • Canvas Apps Components Samples
    • Kid Zone
    • Emergency Response Gallery
    • Events
    • 2021 MSBizAppsSummit Gallery
    • 2020 MSBizAppsSummit Gallery
    • 2019 MSBizAppsSummit Gallery
    • Community Engagement
    • Community Calls Conversations
    • Experimental
    • Error Handling
    • Power Apps Experimental Features
    • Community Support
    • Community Accounts & Registration
    • Using the Community
    • Community Feedback
    cancel
    Turn on suggestions
    Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
    Showing results for 
    Search instead for 
    Did you mean: 
    • Power Apps Community
    • Galleries
    • Canvas Apps Components Samples
    • Re: Screen Header With Search Box & Icons

    Re: Screen Header With Search Box & Icons

    09-21-2022 10:30 AM

    SpoTechGeek
    Frequent Visitor
    1071 Views
    LinkedIn LinkedIn Facebook Facebook Twitter Twitter
    SpoTechGeek
    SpoTechGeek
    Frequent Visitor
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    Screen Header with Search Box and Icons V2

    ‎08-25-2022 09:01 AM

    ScreenHeaderWithIcons.png

     

    Header with Search text box and screen/app title label.

    Common editing and navigation icons. Most colors are editable. Icons such as Add New, Save, Delete, Back, etc. You can show/hide most controls and use behavior properties such as OnSelect.

    Brief explanations on usage are in the comments of properties.

     

    • New version adds an Optional icon where you can define the image and be able to change the image in the app on the fly.
    • You can now add labels below the icons and the hover text will match the labels. See sample code in comments.
    Screen Header With Search Box and Icons.msapp
    Labels:
    • Labels:
    • Components
    • Component
    • Menu
    • PowerApps
    Message 1 of 4
    1,213 Views
    2 Kudos
    Reply
    • All forum topics
    • Next Topic
    Juilan
    Juilan
    New Member
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎09-21-2022 08:46 AM

    This looks to be a sleek menu system. Do you have an example please that I can look at? I can see the explanations in the properties, but am too new to PowerApps to fully understand what to do. Thanks

    Message 2 of 4
    1,080 Views
    0 Kudos
    Reply
    SpoTechGeek
    SpoTechGeek
    Frequent Visitor
    In response to Juilan
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎09-21-2022 10:30 AM

    Hi @Juilan 

    To use the search box, add a gallery and set the Items property to the below
    Use various search/filter strategies. the "in" might create delegation issues on large data sets. try "=" or StartsWith, etc.

     

    Filter(
           CustomGallerySample, //Your data source name
           HeaderWSearchIcons_1.SearchValue in SampleHeading Or
           HeaderWSearchIcons_1.SearchValue in SampleText
    )

     

     

    To dynamically hide icons, you could create context variables on the OnSelect properties. For example, say you want to show the Cancel icon only when the Edit icon is selected -

    • On the EditOnSelect property of the component create a context variable:

     

    UpdateContext({locIsEditSelected: !locIsEditSelected})​

     

    • Set the Cancel icon's Visible property to locIsEditSelected
    Message 3 of 4
    1,071 Views
    0 Kudos
    Reply
    SpoTechGeek
    SpoTechGeek
    Frequent Visitor
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎02-15-2023 05:10 PM

    Hi @Juilan 

    To use the search box, add a gallery and set the Items property to the below
    Use various search/filter strategies. the "in" might create delegation issues on large data sets. try "=" or StartsWith, etc.

     

     

    Filter(
           CustomGallerySample, //Your data source name
           HeaderWSearchIcons_1.SearchValue in SampleHeading Or
           HeaderWSearchIcons_1.SearchValue in SampleText
    )

     

     

     

    To dynamically hide icons, you could create context variables on the OnSelect properties. For example, say you want to show the Cancel icon only when the Edit icon is selected -

    1. On the EditOnSelect property of the component create a context variable:

     

     

    UpdateContext({locIsEditSelected: !locIsEditSelected})​

     

     

    • Set the Cancel icon's Visible property to locIsEditSelected
    Message 4 of 4
    435 Views
    0 Kudos
    Reply

    Power Platform

    • Overview
    • Power BI
    • Power Apps
    • Power Pages
    • Power Automate
    • Power Virtual Agents

    Browse

    • Sample apps
    • Services

    Downloads

    • Windows
    • iOS
    • Android

    Learn

    • Documentation
    • Support
    • Community
    • Give feedback
    • Blog
    • Partners

    • © 2023 Microsoft
    • Follow Power Apps
    • Privacy & cookies
    • Manage cookies
    • Terms of use
    • Trademarks
    California Consumer Privacy Act (CCPA) Opt-Out Icon Your California Privacy Choices