fix: update JS options (#4475)
Add JS options to widget properties, please check the issue for more details
This commit is contained in:
parent
b6703ebe11
commit
82d887338a
|
|
@ -55,8 +55,10 @@ class ButtonWidget extends BaseWidget<ButtonWidgetProps, ButtonWidgetState> {
|
|||
value: "DANGER_BUTTON",
|
||||
},
|
||||
],
|
||||
isJSConvertible: true,
|
||||
isBindProperty: false,
|
||||
isTriggerProperty: false,
|
||||
validation: VALIDATION_TYPES.OPTIONS_DATA,
|
||||
},
|
||||
{
|
||||
propertyName: "isVisible",
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ class ContainerWidget extends BaseWidget<
|
|||
propertyName: "backgroundColor",
|
||||
label: "Background Color",
|
||||
controlType: "COLOR_PICKER",
|
||||
isJSConvertible: true,
|
||||
isBindProperty: true,
|
||||
isTriggerProperty: false,
|
||||
validation: VALIDATION_TYPES.TEXT,
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ class FormWidget extends ContainerWidget {
|
|||
placeholderText: "#FFFFFF / Gray / rgb(255, 99, 71)",
|
||||
controlType: "COLOR_PICKER",
|
||||
isBindProperty: true,
|
||||
isJSConvertible: true,
|
||||
isTriggerProperty: false,
|
||||
validation: VALIDATION_TYPES.TEXT,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -114,8 +114,10 @@ class TextWidget extends BaseWidget<TextWidgetProps, WidgetState> {
|
|||
value: "ITALIC",
|
||||
},
|
||||
],
|
||||
isBindProperty: false,
|
||||
isJSConvertible: true,
|
||||
isBindProperty: true,
|
||||
isTriggerProperty: false,
|
||||
validation: VALIDATION_TYPES.TEXT,
|
||||
},
|
||||
{
|
||||
propertyName: "textAlign",
|
||||
|
|
@ -136,8 +138,10 @@ class TextWidget extends BaseWidget<TextWidgetProps, WidgetState> {
|
|||
},
|
||||
],
|
||||
defaultValue: "LEFT",
|
||||
isBindProperty: false,
|
||||
isJSConvertible: true,
|
||||
isBindProperty: true,
|
||||
isTriggerProperty: false,
|
||||
validation: VALIDATION_TYPES.TEXT,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user