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, defaults: { rows: 8, columns: 20, animateLoading: true, label: "Label", labelPosition: LabelPosition.Left, 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(), }, }; export default Widget;