RepresentativeItemArea
RepresentativeItemArea
クラスは代表項目表示エリアに対して操作を行うためのメンバーを持っています。
継承
インスタンスメソッド
setBackgroundColor
文字列を受け取り、代表項目表示エリアの背景色を変更します。
構文
setBackgroundColor(color);
引数
color
代表項目表示エリアの背景色を表す文字列です。null
や空文字列などの falsy な値を指定した場合や何も指定しなかった場合はアプリケーションのデフォルトの背景色が適用されます。
返値
なし
例
esmJSPlugin.screen.sheetDetail("customer").onEntered(function (screen) {
const representativeItemArea = screen.getRepresentativeItemArea();
representativeItemArea.onMounted(function () {
representativeItemArea.setBackgroundColor("red"); // 赤色になります
representativeItemArea.setBackgroundColor("#FFFFFF"); // 白色になります
representativeItemArea.setBackgroundColor(null); // デフォルトの色になります
});
});