TrophyCustomer's Canvas is honored with a 2020 InterTech Technology Award! Learn more 

IPerSurfaceConfiguration Interface

A configuration of widgets, that is defined for separate surfaces. For an example, you can refer to the Customizing Widgets on a Per-page Basis topic.

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)"]]
                        }
                    ]
                }
            }
        }
    }
};

Indexable

[surfaceName: string ]: object

A configuration of widgets, that is defined for separate surfaces. For an example, you can refer to the Customizing Widgets on a Per-page Basis topic.