メインコンテンツまでスキップ

setProperty

setProperty

このフォームのプロパティ(Property)の値をスクリプトから変更します。

パラメータ

  • namestring): 変更するプロパティ名(LucyStudioデザイナーでフォームに定義したPropertyの名前)
  • valueany): 新しい値

戻り値: なし(void

説明

LucyStudioでフォームに定義されたPropertyの値を実行時に変更します。その名前のプロパティが存在しない場合は何も起こりません。

Example

// 1. 폼 타이틀 변경 (편집 모드 전환 시)
$form.setProperty("title", "주문 상세 - 편집 중");
// 2. 배경색 변경 (다크 모드 적용)
$form.setProperty("backgroundColor", "#1A1A2E");
// 3. 폼 레이아웃 방향 변경
// 가능한 값: "inherit" | "auto" | "vertical" | "horizontal"
$form.setProperty("orientation", "horizontal");

関連

  • $form.getProperty(name) — プロパティ値を読み取る