Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

PCF property types and output

(0) ShareShare
ReportReport
Posted on by

Hello,

I'm currently building a custom dropdown component and have two questions about the properties.

 

1. How Is it possible to use a color as property-type? The default dropdown in PowerApps uses this Type for all of the Styling props like BorderColor, Fill, etc.

I currently use SingleLine.Text but with this I can't use the RGBA function to define a color.

 

2. How is it possible to create an output property that works like an object like the output of the default dropdown. There I can use Dropdown.Selected.Value and In can't find a property-type covering Something like this.

 

Thank you for your time!

  • Verified answer
    Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: PCF property types and output

    Hi @Anonymous , 

     

    so it seems that you target the PCF for a Canvas App.

    1. I am not aware of a color type property. I use a SingleLine.Text too. It's true that it won't allow to choose the color from the picker.

    2. Let's see if I get your question right.

    - You could define the property of type OptionSet with usage="bound". Then you can use the value as both an input and output property (you basically work with the integer "Value" in both directions).

    - If you want a property that acts only as output, there is some kind of gray zone: a usage="output". I didn't found it documented, but it's shown in some sdk examples (for instance this one, have a look in the manifest: https://docs.microsoft.com/en-us/powerapps/developer/component-framework/tutorial-create-canvas-dataset-component?WT.mc_id=BA-MVP-5004107).

    - If your question is about how the output is looking like: is not an object, but an integer (so the Value).

     

    Hope it helps!

     

     

  • Community Power Platform Member Profile Picture
    on at
    Re: PCF property types and output

    The problem ist not which React component I could use but the type of the property. I want to use the same input for "Fill" in my custom component that is used in the default dropdown component:

    ynnkhhnl_0-1634883671783.png

    All I can use at the moment is SingleLine.Text because I can not find a Color property-type:

    ynnkhhnl_1-1634883779667.png

     

  • cchannon Profile Picture
    4,702 Super User 2025 Season 1 on at
    Re: PCF property types and output

    I would suggest using the Fluent UI Dropdown component. It exposes a Styles interface (

    IDropdownStyles) to props so you can pass it whatever style customizations you want, including colors.

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 Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 57 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard