提供方法中 updateView 變更內容的相關資訊。 這些資訊可能是屬性值、元件或瀏覽器調整大小事件中的變更。
類型:string[]
| 陣列值 | 適用於 | Description |
|---|---|---|
| 版面配置 | 模型導向和畫布應用程式 | 控制項的維度已更新。 |
| 資料集 | 模型導向和畫布應用程式 | 記錄已更新。 |
| 案卷 | 畫布應用程式 | 記錄已更新。 |
| columns | 畫布應用程式 | 列已更新。 |
| 排序順序 | 畫布應用程式 | 排序順序已更新。 |
| 頁面 | 畫布應用程式 | 分頁資訊已更新。 |
| 篩選 | 畫布應用程式 | 已更新篩選。 |
| 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;
}
}