web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How declare the key/va...
Power Apps
Answered

How declare the key/value of the property type enum

(0) ShareShare
ReportReport
Posted on by 81

I try use a property of type enum, but the documentation doen't say how declare enum values. 

Can you help me?

Thanks

Enum.jpg
I have the same question (0)
  • Verified answer
    Hemant Gaur Profile Picture
    Microsoft Employee on at

    Looks like we need to update the documentation with the sample for this, we will track this change at our end. 

     

    In the meantime you can use the following snip for reference, let me know if there are any issues

     

     <property name="ReflowBehavior" display-name-key="ReflowBehavior" description-key="ReflowBehavior Desciption" usage="input" of-type="Enum" required="false">
     <value name="Reflow" display-name-key="Reflow" description-key="Reflow_Desc">Reflow</value>
     <value name="GridOnly" display-name-key="GridOnly" description-key="GridOnly_Desc" default="true">GridOnly</value>
     <value name="ListOnly" display-name-key="ListOnly" description-key="ListOnly_Desc">ListOnly</value>
     </property>

     

     

    Hemant 

     

  • jaguil3ra Profile Picture
    81 on at

    Thansk @HemantG  it work for me. I will soon release a new custom component 😄

  • Hemant Gaur Profile Picture
    Microsoft Employee on at
    Cool, post the new demo links here and I will update. - aka.ms/pcfdemos

  • jaguil3ra Profile Picture
    81 on at

    My previous components:
    RichTextControl
    CreditCardControl

    As soon as I have the new component ready, I'll be placing it around here..

    Regards

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 490

#2
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 381

Last 30 days Overall leaderboard