Mode

Provides access to methods to get the information about the current state of the code component.

Available for

Model-driven apps

Properties

allocatedHeight

Height in pixels allocated to the component.

Type: number

allocatedWidth

Width in pixels allocated to the component.

Type: number

isControlDisabled

Whether the component is disabled.

Type: string

isVisible

Whether the component is visible on the page.

Type: boolean

label

The defined component label.

Type: string

Methods

Method Description
setControlState Set component state so that it will be stored in one session.
setFullScreen Make the component full screen.
trackContainerResize Determines the container sizing if the component needs to react. Component will get allocatedWidth or allocatedHeight if the input is true.

Power Apps component framework API reference
Power Apps component framework overview

Note

Can you tell us about your documentation language preferences? Take a short survey.

The survey will take about seven minutes. No personal data is collected (privacy statement).