updateView メソッドで何が変更されたかに関する情報を提供します。 情報は、プロパティ値、コンポーネント、またはブラウザーのサイズ変更イベントで変更される可能性があります。
型: string[]
| 配列値 | 使用可能な対象 | Description |
|---|---|---|
| レイアウト | モデル駆動型アプリとキャンバス アプリ | コントロールのディメンションが更新されました。 |
| データセット | モデル駆動型アプリとキャンバス アプリ | レコードが更新されました。 |
| records | キャンバス アプリ | レコードが更新されました。 |
| columns | キャンバス アプリ | 列が更新されました。 |
| sortorder | キャンバス アプリ | 並べ替え順序が更新されました。 |
| page | キャンバス アプリ | 改ページ位置情報が更新されました。 |
| フィルタ | キャンバス アプリ | フィルター処理が更新されました。 |
| commands | キャンバス アプリ | コマンドが更新されました。 |
さらに、データセット が読み込まれている かどうかを示すデータセットの読み込み属性を使用します。
使用可能な対象
モデル駆動型アプリとキャンバス アプリ
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;
}
}
関連資料
データセットの読み込み属性
Power Apps コンポーネント フレームワーク API リファレンス
Power Apps コンポーネント フレームワークの概要