Skip to main content
⚠️ Archived Version

You are viewing documentation for Design Editor version 7.2, which is no longer actively maintained. For the latest features and updates, please refer to the current version (7.3).

Interface: IWidgetConfigsForSurface

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

Remarks

For details, see Configuring UI on different pages.

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,
sections: [
{
type: "PaletteSection",
palette: `"rgb(0,0,0)", "rgb(255,255,255)"`
}
]
}
}
}
}
};

Properties

Toolbox?

optional Toolbox?: IToolboxConfig

Settings of design elements that can be added to a canvas from the Toolbox.


ObjectInspector?

optional ObjectInspector?: IObjectInspectorConfig

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


ColorPicker?

optional ColorPicker?: IColorPickerConfig

Settings defining a color selection in the editor.

Was this page helpful?