---
title: "IChannelContainerDefinition Interface"
canonical: https://customerscanvas.com/docs/cc4/customerscanvas.iframeapi.objectmodel.ichannelcontainerdefinition.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Editor"
    versions: ["4.4.25", "4.x (may differ)"]
---

**You’re viewing outdated documentation.** [View the latest Customer’s Canvas On-Premises documentation](https://customerscanvas.com/docs/on-premises/).

# IChannelContainerDefinition Interface

**Applies to:** Customer's Canvas On-Premises; Design Editor 4.4.25, 4.x (may differ) · **Archived documentation**
 
A structure holding settings to create a channel container.
  
 - example
     - ```
productDefinition = {
    surfaces: [{
        printAreas: [{
            designFile: "texture",
            containers: [
                {
                    name: "foil",
                    texture: "texture.png",
                    type: "texture"
                },
                {
                    name: "spot",
                    previewColor: "rgba(255,255,0,1)",
                    type: "spotColor"
                }]
        }]
    }]
};
```
 
### Implemented by
 
- [Container](https://customerscanvas.com/docs/cc4/customerscanvas.iframeapi.objectmodel.container.htm.md)
 
## Properties
 
### Optional name
 
name: string

A unique container name.
 
### Optional previewColor
 
previewColor: string

An RGB color representing a spot color on the canvas and proof images.
 
### Optional texture
 
texture: string

A texture image used for rendering elements of the container on the canvas and proof images. This value is relative to the `~\ProductTemplates\designImages\` folder.
 
### Optional translationKey
 
translationKey: string

The translation key of the channel tab caption in the Object Inspector. The corresponding string should be defined in the `~\Configuration\translations.json` file.
 
### Optional type
 
type: [ChannelContainerType](https://customerscanvas.com/docs/cc4/customerscanvas.iframeapi.objectmodel.channelcontainertype.htm.md)

A type of the channel container, either texture or spot color.
