cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
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

Highlighted
Advocate V
Advocate V

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
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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

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

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (4,352)