Interface: IConfiguration
A structure containing the web-to-print editor configuration.
Remarks
Extends IUiConfig.
Example
// Defining the editor configuration.
var configuration = {
canvas: {
color: "grey"
},
grid: {
stepX: 0.5,
stepY: 0.5
},
initialMode: "Advanced",
customStyle: "mySiteStyles",
rendering: {
proofImageMockupEnabled: false
},
userInfo: {
"FirstName": "John",
"LastName": "Wood",
"Phone": "1234567890"
},
widgets: {
ObjectInspector: {
dndEnabled: false
}
},
tokenId: "95c16577-75fe-4145-87ff-c0ba49d1a554"
};
// Loading the editor with the given configuration.
var editor = await CustomersCanvas.IframeApi.loadEditor(iframe, productDefinition, configuration);
Extends
Properties
defaultLanguage?
optionaldefaultLanguage?:string
A default interface language. The default value is "en". For details, see the Localization https://customerscanvas.com/dev/editors/iframe-api/customization/localization.html|Localization topic.
Inherited from
canvas?
optionalcanvas?:ICanvasConfig
A structure containing canvas settings.
Inherited from
grid?
optionalgrid?:IGridConfig
The grid configuration. For details, see the Grid https://customerscanvas.com/dev/editors/iframe-api/editor-configuration/rulers-grids-snaplines.html|Grid topic.
Inherited from
watermark?
optionalwatermark?:IWatermarkConfig
The watermark configuration.