PromucFlow_constructor/app/client/src/widgets/RadioGroupWidget/index.ts
Pawan Kumar 1821e31943
fix: Theme Stylesheet refactor (#18258)
* fix

* move stylesheet to widget level

* fix types

* fix types

* fix types

* fix types ( thanks to ashit )

* fix type issue

* add config for list widget

* fix jest tests
2022-11-28 10:14:31 +05:30

51 lines
1.2 KiB
TypeScript

import IconSVG from "./icon.svg";
import { Alignment } from "@blueprintjs/core";
import Widget from "./widget";
import { LabelPosition } from "components/constants";
export const CONFIG = {
type: Widget.getWidgetType(),
name: "Radio Group",
iconSVG: IconSVG,
needsMeta: true,
features: {
dynamicHeight: {
sectionIndex: 3,
active: true,
},
},
searchTags: ["choice"],
defaults: {
rows: 6,
columns: 20,
animateLoading: true,
label: "Label",
labelPosition: LabelPosition.Top,
labelAlignment: Alignment.LEFT,
labelTextSize: "0.875rem",
labelWidth: 5,
options: [
{ label: "Yes", value: "Y" },
{ label: "No", value: "N" },
],
defaultOptionValue: "Y",
isRequired: false,
isDisabled: false,
isInline: true,
alignment: Alignment.LEFT,
widgetName: "RadioGroup",
version: 1,
},
properties: {
derived: Widget.getDerivedPropertiesMap(),
default: Widget.getDefaultPropertiesMap(),
meta: Widget.getMetaPropertiesMap(),
config: Widget.getPropertyPaneConfig(),
contentConfig: Widget.getPropertyPaneContentConfig(),
styleConfig: Widget.getPropertyPaneStyleConfig(),
stylesheetConfig: Widget.getStylesheetConfig(),
},
};
export default Widget;