SitesSDK.setProperty(propertyName, propertyValue)

この関数は、指定したプロパティの値をpropertyValueに設定します。

パラメータ

名前 タイプ 説明

propertyName

文字列

プロパティの名前。

propertyValue

JSONオブジェクト

プロパティの値。

関連プロパティ

この表は、setProperty()を使用してフェッチできる一連の関連プロパティを示しています。

プロパティ名 説明 設定 レンダリング

height

フレームの高さ

該当なし

はい

width

フレームの幅

該当なし

はい

customSettingsData

設定データ

はい

はい

styleClass

選択したスタイル・クラス

はい

はい

description

ページ上のローカル・コンポーネントのインスタンスのバナーで使用されます

   

layout

ローカル・コンポーネントのみに対して現在選択されているレイアウトを返します。appinfo.jsonファイルの値に基づいて「設定」パネルから更新できます。

   

renderStatus

レンダリングが終了したことをカスタム・コンポーネントがレポートできるようにします。

true

 

borderColorborderRadiusalignmentborderStylemarginなどのその他のスタイル属性

     

使用方法

// configuration that can be saved
var saveconfig = {
                                            //current settings id
                                            'id': self.appSettingsProperties['settingsId'],
                                            'url': self.url(),
                                            'limit': self.limit()
                                            };
// save property 'customSettingsData'
SitesSDK.setProperty('customSettingsData',saveconfig);