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

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

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
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Users online (6,490)