PromucFlow_constructor/app/client/src/widgets/ProgressBarWidget/index.ts

34 lines
1003 B
TypeScript
Raw Normal View History

2021-12-29 12:01:19 +00:00
import { Colors } from "constants/Colors";
import { BarType } from "./constants";
import IconSVG from "./icon.svg";
import Widget from "./widget";
2021-12-29 12:01:19 +00:00
export const CONFIG = {
type: Widget.getWidgetType(),
name: "Progress Bar", // The display name which will be made in uppercase and show in the widgets panel ( can have spaces )
hideCard: true,
2021-12-29 12:01:19 +00:00
iconSVG: IconSVG,
needsMeta: false, // Defines if this widget adds any meta properties
isCanvas: false, // Defines if this widget has a canvas within in which we can drop other widgets
defaults: {
widgetName: "ProgressBar",
rows: 4,
columns: 28,
2021-12-29 12:01:19 +00:00
isVisible: true,
fillColor: Colors.GREEN,
showResult: false,
barType: BarType.INDETERMINATE,
progress: 50,
steps: 1,
version: 1,
},
properties: {
derived: Widget.getDerivedPropertiesMap(),
default: Widget.getDefaultPropertiesMap(),
meta: Widget.getMetaPropertiesMap(),
config: Widget.getPropertyPaneConfig(),
},
};
export default Widget;