fix: update JS options (#4475)

Add JS options to widget properties, please check the issue for more details
This commit is contained in:
Tolulope Adetula 2021-07-16 13:29:53 +01:00 committed by GitHub
parent b6703ebe11
commit 82d887338a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 2 deletions

View File

@ -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",

View File

@ -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,

View File

@ -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,
},

View File

@ -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,
},
],
},