PromucFlow_constructor/app/client/generators/widget/templates/index.js.hbs
Rajat Agrawal 1a98f44bc2
chore: Add missing autocomplete definition declarations (#23726)
There were some autocomplete definitions declaration I missed last time
I refactored the code. Adding them now.
2023-06-02 16:22:27 +05:30

33 lines
1.0 KiB
Handlebars

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
features: {
dynamicHeight: {
sectionIndex: 0, // Index of the property pane "General" section
active: false,
},
},
defaults: {
widgetName: "{{name}}",
rows: 1,
columns: 3,
version: 1,
},
properties: {
derived: Widget.getDerivedPropertiesMap(),
default: Widget.getDefaultPropertiesMap(),
meta: Widget.getMetaPropertiesMap(),
contentConfig: Widget.getPropertyPaneContentConfig(),
styleConfig: Widget.getPropertyPaneStyleConfig(),
autocompleteDefinitions: Widget.getAutocompleteDefinitions()
},
};
export default Widget;