setProperty
setProperty
Changes a property value on this form from a script.
Parameters
name(string): The name of the property to change (a Property defined on the form in the LucyStudio designer)value(any): The new value
Returns: None (void)
Description
Changes the value of a Property defined on the form in LucyStudio at runtime. If no property with that name exists, nothing happens.
Example
// 1. 폼 타이틀 변경 (편집 모드 전환 시)
$form.setProperty("title", "주문 상세 - 편집 중");
// 2. 배경색 변경 (다크 모드 적용)
$form.setProperty("backgroundColor", "#1A1A2E");
// 3. 폼 레이아웃 방향 변경
// 가능한 값: "inherit" | "auto" | "vertical" | "horizontal"
$form.setProperty("orientation", "horizontal");
Related
$form.getProperty(name)— reads a property value