Muokkaa

Jaa


Mode

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

Available for

Model-driven apps, canvas apps, & portals.

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. However, when application is in multisession experience then the same state is shared across all tabs.
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