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
Power Apps
Power Apps

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

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

View solution in original post

3 REPLIES 3
Power Apps
Power Apps

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

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

View solution in original post

rexkenley Advocate IV
Advocate IV

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

@GregHurlmanMSFT 

 

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

 

Thanks!

ben-thompson Impactful Individual
Impactful Individual

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

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
secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Users online (6,961)