cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

[PCF] How to set control style based on mode (read-only etc.)

Hello,

 

How can i set control style based on his mode (read-only etc.) ?? 

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
GregHurlmanMSFT
Power Apps
Power Apps

You can get that information from the context object, at context.Mode.isControlDisabled.

View solution in original post

3 REPLIES 3
GregHurlmanMSFT
Power Apps
Power Apps

You can get that information from the context object, at context.Mode.isControlDisabled.

View solution in original post

@GregHurlmanMSFT 

 

Is there documentation for this? I tried to google for this very thing and it did not return anything from microsoft docs.

 

Thanks!

It's available at 

 

https://docs.microsoft.com/en-us/powerapps/developer/component-framework/reference/mode

 

but as with all such documentation it does not go into any detail

---
If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (65,609)