updatedProperties
Provides information on what has changed in the updateView
method. The information could be change in the property value, component or browser resize event.
Type: string[]
Array Values | Available for | Description |
---|---|---|
layout | Model-driven and Canvas apps | Dimensions for the control were updated. |
dataset | Model-driven and Canvas apps | Records were updated. |
records | Canvas apps | Records were updated. |
columns | Canvas apps | Columns were updated. |
sortorder | Canvas apps | Sort order was updated. |
page | Canvas apps | Pagination information was updated. |
filter | Canvas apps | Filtering was updated. |
commands | Canvas apps | Commands were were updated. |
Additionally, use loading attribute of the dataset that indicates whether the dataset is loading or not.
Available for
Model-driven and canvas apps
Example
public updateView(context: ComponentFramework.Context<IInputs>): void
{
// check if the updateView call has updated the sampleProperty
if(context.updateProperties.indexOf("SampleProperty")> -1)
{
this._value = context.parameters.sampleProperty.raw;
}
// update isFullScreen flag based on the context
if(-1!== context.updatedProperties.indexOf("fullscreen_open"))
{
this._isFullScreen =true;
}
else if(-1!== context.updatedProperties.indexOf("fullscreen_open"))
{
this._isFullScreen =false;
}
}
Related articles
Dataset loading attribute
Power Apps component framework API reference
Power Apps component framework overview
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기