Interface: IBottomToolbarConfig
A structure containing the configuration of the Bottom toolbar.
Example
This is how you can disable all the buttons and enable only page names in the navigation area.
const productDefinition = {
surfaces: [
{
name: "Left",
printAreas: `[{ designFile: "TriFold_Side1" }]`,
},
{
name: "Middle",
printAreas: `[{ designFile: "TriFold_Side2" }]`,
},
{
name: "Right",
printAreas: `[{ designFile: "TriFold_Side3" }]`,
},
],
};
const configuration = {
widgets: {
BottomToolbar: {
// Disable buttons in the Bottom Toolbar.
zoomValueEnabled: false,
zoomButtonsEnabled: false,
rotateButtonEnabled: false,
fullScreenButtonEnabled: false,
safetyLinesCheckboxEnabled: false,
previewModeCheckboxEnabled: false,
gridCheckboxEnabled: false,
snapLinesItemsCheckboxEnabled: false,
snapLinesPrintAreaCheckboxEnabled: false,
snapLinesSafetyLinesCheckboxEnabled: false,
// Enable only page names in the navigation area.
surfaceSwitch: {
enabled: true,
showThumbnails: false,
showSurfaceNames: true,
scrollPageButtonsEnabled: false,
toggleSurfaceButtonsEnabled: false,
firstAndLastButtonsEnabled: false,
},
},
},
};
CustomersCanvas.IframeApi.loadEditor(iframe, productDefinition, configuration);
Properties
fullWindowButtonEnabled?
optionalfullWindowButtonEnabled?:boolean
Displays the Full window button. The default value is true.
fullScreenButtonEnabled?
optionalfullScreenButtonEnabled?:boolean
Displays the Full screen button; the full-screen mode is not supported in Internet Explorer and Safari, so the related button is not displayed in these browsers even if it is enabled. The default value is true.
zoomValueEnabled?
optionalzoomValueEnabled?:boolean
Displays current zoom value. The default value is true.
zoomButtonsEnabled?
optionalzoomButtonsEnabled?:boolean
Displays the Zoom in and Zoom out buttons. The default value is true.
rotateButtonEnabled?
optionalrotateButtonEnabled?:boolean
Displays the Rotate button to rotate the canvas at the angle predefined in IRotationConfig. The default value is false.
safetyLinesCheckboxEnabled?
optionalsafetyLinesCheckboxEnabled?:boolean|ICheckboxConfig
Displays the safety lines toggle button. The default value is true.
previewModeCheckboxEnabled?
optionalpreviewModeCheckboxEnabled?:boolean|ICheckboxConfig
Displays the Preview mode check box on the Marking menu. The default value is false.
gridCheckboxEnabled?
optionalgridCheckboxEnabled?:boolean|ICheckboxConfig
Displays the grid toggle button. The default value is true.
snapLinesPrintAreaCheckboxEnabled?
optionalsnapLinesPrintAreaCheckboxEnabled?:boolean|ICheckboxConfig
Displays the Snap to page check box on the Marking menu. The default value is true.
snapLinesSafetyLinesCheckboxEnabled?
optionalsnapLinesSafetyLinesCheckboxEnabled?:boolean|ICheckboxConfig
Displays the Snap to safety lines check box on the Marking menu. The default value is true.
snapLinesItemsCheckboxEnabled?
optionalsnapLinesItemsCheckboxEnabled?:boolean|ICheckboxConfig
Displays the Snap to items check box on the Marking menu. The default value is true.
snapLinesInteractiveZonesCheckboxEnabled?
optionalsnapLinesInteractiveZonesCheckboxEnabled?:boolean|ICheckboxConfig
Displays the Snap to interactive zones check box on the Marking menu. The default value is true.
surfaceSwitch?
optionalsurfaceSwitch?:ISurfaceSwitchConfig
Defines the pagination control in the Bottom toolbar.
flatMarkingMenuEnabled?
optionalflatMarkingMenuEnabled?:boolean
Displays the marking menu flat.