diff --git a/app/client/src/widgets/IconButtonWidget.tsx b/app/client/src/widgets/IconButtonWidget.tsx index d3d74e4740..45585a1c5a 100644 --- a/app/client/src/widgets/IconButtonWidget.tsx +++ b/app/client/src/widgets/IconButtonWidget.tsx @@ -44,6 +44,45 @@ class IconButtonWidget extends BaseWidget { isTriggerProperty: false, 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", label: "Button Style", @@ -146,40 +185,6 @@ class IconButtonWidget extends BaseWidget { isBindProperty: 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, - }, ], }, ];