Bewerken

Delen via


ReactControl (Preview)

Provides properties and methods to initiate, update, destroy and perform various actions to build a component using a React control.

This control is part of the React controls & platform libraries (Preview) .

Available for

Model-driven and canvas apps

Methods

Method Description
destroy This method is invoked when the component is to be removed from the DOM tree. Use it for the cleanup and to release any memory that the component is using.
getOutputs It is called by the framework prior to a component receiving the new data. Returns an object based on nomenclature defined in manifest, expecting objects[s] for the property marked as bound.
init Used to initialize the component instance. Components can kick off remote server calls and other initialization actions. Dataset values cannot be initialized here, use the updateView method to achieve that.
updateView This method will be called when any value in the property bag has changed. This includes field values, datasets, global values such as container height and width, offline status, component metadata values such as label, visible, etc.

React controls & platform libraries (Preview)
Power Apps component framework API reference
Power Apps component framework overview