Skip to main content

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?