fix: reorder IconButtonWidget properties (#7088)
This commit is contained in:
parent
f95f550721
commit
fbb8af1c3b
|
|
@ -44,6 +44,45 @@ class IconButtonWidget extends BaseWidget<IconButtonWidgetProps, WidgetState> {
|
||||||
isTriggerProperty: false,
|
isTriggerProperty: false,
|
||||||
validation: { type: ValidationTypes.TEXT },
|
validation: { type: ValidationTypes.TEXT },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
propertyName: "isDisabled",
|
||||||
|
helpText: "Disables input to the widget",
|
||||||
|
label: "Disabled",
|
||||||
|
controlType: "SWITCH",
|
||||||
|
isJSConvertible: true,
|
||||||
|
isBindProperty: true,
|
||||||
|
isTriggerProperty: false,
|
||||||
|
validation: { type: ValidationTypes.BOOLEAN },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
propertyName: "isVisible",
|
||||||
|
helpText: "Controls the visibility of the widget",
|
||||||
|
label: "Visible",
|
||||||
|
controlType: "SWITCH",
|
||||||
|
isJSConvertible: true,
|
||||||
|
isBindProperty: true,
|
||||||
|
isTriggerProperty: false,
|
||||||
|
validation: { type: ValidationTypes.BOOLEAN },
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
sectionName: "Actions",
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
helpText: "Triggers an action when the button is clicked",
|
||||||
|
propertyName: "onClick",
|
||||||
|
label: "onClick",
|
||||||
|
controlType: "ACTION_SELECTOR",
|
||||||
|
isJSConvertible: true,
|
||||||
|
isBindProperty: true,
|
||||||
|
isTriggerProperty: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
sectionName: "Styles",
|
||||||
|
children: [
|
||||||
{
|
{
|
||||||
propertyName: "buttonStyle",
|
propertyName: "buttonStyle",
|
||||||
label: "Button Style",
|
label: "Button Style",
|
||||||
|
|
@ -146,40 +185,6 @@ class IconButtonWidget extends BaseWidget<IconButtonWidgetProps, WidgetState> {
|
||||||
isBindProperty: false,
|
isBindProperty: false,
|
||||||
isTriggerProperty: false,
|
isTriggerProperty: false,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
propertyName: "isDisabled",
|
|
||||||
helpText: "Disables input to the widget",
|
|
||||||
label: "Disabled",
|
|
||||||
controlType: "SWITCH",
|
|
||||||
isJSConvertible: true,
|
|
||||||
isBindProperty: true,
|
|
||||||
isTriggerProperty: false,
|
|
||||||
validation: { type: ValidationTypes.BOOLEAN },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
propertyName: "isVisible",
|
|
||||||
helpText: "Controls the visibility of the widget",
|
|
||||||
label: "Visible",
|
|
||||||
controlType: "SWITCH",
|
|
||||||
isJSConvertible: true,
|
|
||||||
isBindProperty: true,
|
|
||||||
isTriggerProperty: false,
|
|
||||||
validation: { type: ValidationTypes.BOOLEAN },
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sectionName: "Actions",
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
helpText: "Triggers an action when the button is clicked",
|
|
||||||
propertyName: "onClick",
|
|
||||||
label: "onClick",
|
|
||||||
controlType: "ACTION_SELECTOR",
|
|
||||||
isJSConvertible: true,
|
|
||||||
isBindProperty: true,
|
|
||||||
isTriggerProperty: true,
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user