PromucFlow_constructor/app/client/generators/widget/templates/index.js.hbs

24 lines
753 B
Handlebars
Raw Normal View History

import Widget from "./widget";
import IconSVG from "./icon.svg";
export const CONFIG = {
type: Widget.getWidgetType(),
name: "{{name}}", // The display name which will be made in uppercase and show in the widgets panel ( can have spaces )
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: "{{name}}",
rows: 1,
columns: 3,
version: 1,
},
properties: {
derived: Widget.getDerivedPropertiesMap(),
default: Widget.getDefaultPropertiesMap(),
meta: Widget.getMetaPropertiesMap(),
config: Widget.getPropertyPaneConfig(),
},
};
export default Widget;