---
title: "IChannelContainerDefinition Interface"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.objectmodel.ichannelcontainerdefinition.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Editor"
    versions: ["6.15.0", "6.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 6.15.0, 6.x (may differ) · **Archived documentation**
 
A structure holding settings to create a channel container. For details, see the [Spot Colors and Textures](https://customerscanvas.com/docs/cc6/spot-colors-and-textures.htm.md) topic.
  
 - example
     - ```
const productDefinition = {
    surfaces: [{
        printAreas: [{
            designFile: "texture",
            containers: [
                {
                    name: "foil",
                    type: "texture",
                    texture: "texture.jpg"
                },
                {
                    name: "spot",
                    type: "spotColor",
                    previewColor: "rgba(255,255,0,1)"
                }]
        }]
    }]
};
```
 
### Implemented by
 
- [Container](https://customerscanvas.com/docs/cc6/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 `~\assets\helpers\` 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/cc6/customerscanvas.iframeapi.objectmodel.channelcontainertype.htm.md)

A type of the channel container, either texture or spot color.
