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

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

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
Level: Powered On

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!

Highlighted
ben-thompson
Level 8

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

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Users online (4,781)