IWidgetConfigsForSurface Interface

A structure defining the configuration of widgets for a separate surface.

example
product: {
    surfaces: [{
            name: "surface1",
            printAreas: [{ designFile: "Postcard_side1" }]
        },
        {
            name: "surface2",
            printAreas: [{ designFile: "Postcard_side2" }]
        }
    ]
};

config: {
    perSurfaceConfiguration: {
        "surface2": {
            widgets: {
                ObjectInspector: {
                    bgItemEnabled: false
                },
                ColorPicker: {
                    showPaletteOnly: false,
                    palette: [[ "rgb(0, 0, 0)", "rgb(255, 255, 255)" ]]
                }
            }
        }
    }
};

Properties

Optional ColorPicker

ColorPicker: IColorPickerConfig

Settings defining a color selection in the editor.

Optional LeftToolbar

LeftToolbar: ILeftToolbarConfig

Settings of elements that can be added to a canvas.

Optional ObjectInspector

ObjectInspector: IObjectInspectorConfig

Settings defining a position of the Object Inspector, an appearance of layers, and messages.