- Introduction
- What's New?
- Features
- Getting Started
- Integration with E-commerce
- Integration with Remote Asset Sources
- Printable Files and Proof Images
- Configuring Products
- Creating Product Templates
- User Interface
- Configuration Files
- API
- Introduction to IFrame API
- IFrame API Reference
- BaseEditor Module
- IframeApi Module
- Configuration Module
- Editor Class
- loadEditor Function
- loadEditorByQueryString Function
- ObjectModel Module
- ChannelContainerType Enumeration
- Container Class
- CropMarkTextAlignment Enumeration
- IBarcodeVariable Interface
- IBasePrintAreaDefinition Interface
- IBaseSurfaceDefinition Interface
- IBaseSurfacesDefinition Interface
- IBgFoldingModeParams Interface
- IChannelContainerDefinition Interface
- ICropMark Interface
- ICropMarkText Interface
- IFoldingLine Interface
- IHiResOutput Interface
- IMarginHV Interface
- IMarginLTRB Interface
- IMockupData Interface
- IMockupFolders Interface
- IMockupTemplateHandlerLegacy Interface
- IMockupTemplateObject Interface
- IModelComponent Interface
- IPointF Interface
- IPrintAreaDefinition Interface
- IPrintAreaTemplate Interface
- IProductDefinition Interface
- IProofImage Interface
- IRectangleF Interface
- ISafetyLine Interface
- ISize Interface
- ISpine Interface
- IStateSurface Interface
- IStateSurfaces Interface
- ISurfaceDefinition Interface
- ISurfacesFromFolder Interface
- ISurfacesFromMultipageTemplate Interface
- ISurfaceTemplate Interface
- ITagsDictionary Interface
- Item Class
- IVariable Interface
- PrintArea Class
- Product Class
- Surface Class
- SurfaceMockup Class
- PostMessage Module
- preload Function
- RuntimeConfiguration Class
- Web API
- Old Query-string API
- Visual Proofing Tool
- Variable Data Printing
- System Requirements
- Troubleshooting
- Licensing
- Copyright Notices
Product Class
Applies to: Customer's Canvas On-Premises; Design Editor 4.4.25, 4.x (may differ) · Archived documentation
A Customer's Canvas product.
Methods
| Name | Description |
|---|---|
| addSurface |
Adds the given surface (page) to the product. |
| addSurfaces |
Adds a number of surfaces (pages) to the product. |
| applyProductTheme |
Applies a color theme to the product. |
| getAllItems |
Lists all design elements in the product. |
| getTags |
Reads product tags. |
| getVariableItems |
Lists all variable items in the product. |
| removeSurface |
Removes the given surface (page) from the product. |
| setMockups |
Sets mockups for several product pages. |
| setSurfaces |
Replaces a product. |
| setTags |
Specifies tags for the product. |
| setUserId |
Sets the user unique identifier and move user files to the user folder. For details, see the Working with User Data topic. |
| swapSurfaces |
Swaps two surfaces (pages) in the product. Returns the product instance where the surfaces (pages) were swapped. |
| switchTo |
Opens the given product surface in the designer. Returns the product with the given surface (page) opened. |
Properties
currentSurface
A surface (page) currently opened in the editor.
id
A unique product identifier.
name
A product name.
surfaces
Product surfaces (pages).
userId
A user identifier.