---
title: "IGalleryButton Interface"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.itoolboxconfigparsed.igallerybutton.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/).

# IGalleryButton Interface

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
A structure defining configuration of the Toolbox for launching the Asset Manager in a predefined mode. For more details, refer to [The Asset Manager](https://customerscanvas.com/docs/cc6/asset-manager.htm.md) topic.
  
 - example
     - clientConfig.json
 
```
{
  "assetSources": {
    "Backgrounds": {
      "type": "PublicSource",
      "allowedExtensions": [ "jpg", "png" ]
    },
    "Instagram": {
      "type": "SocialNetworkSource",
      "network": "instagram",
      "apiKey": "88884444aaaa222288883333ffff6666"
    }
  },
  "widgets": {
    "AssetManager": {
      "tabs": [
        {
          "name": "Backgrounds",
          "assetSourceInstance": "Backgrounds"
        },
        {
          "name": "Instagram",
          "assetSourceInstance": "Instagram"
        }
      ]
    },
    "Toolbox": {
      "buttons": [
        {
          "translationKey": "Toolbox.IMAGE",
          "translationKeyTitle": "Toolbox.TITLE_ADD_IMAGE",
          "iconClass": "cc-icon-add-image",
          "buttons": [
            "Image",
            {
              "action": "Image",
              "translationKey": "Toolbox.INSTAGRAM",
              "translationKeyTitle": "Toolbox.INSTAGRAM",
              "iconClass": "cc-icon-add-instagram",
              "tabs": [ "Instagram" ]
            },
            {
              "action": "Image",
              "translationKey": "Toolbox.BACKGROUNDS",
              "translationKeyTitle": "Toolbox.BACKGROUNDS",
              "iconClass": "cc-icon-add-background",
              "tabs": [ "Backgrounds" ]
            }
          ]
        }
      ]
    }
  }
}
```
 
## Properties
 
### action
 
action: [ButtonAction](https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.itoolboxconfigparsed.htm.md)

Inherited from [ISingleButton](https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.itoolboxconfigparsed.isinglebutton.htm.md).[action](https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.itoolboxconfigparsed.isinglebutton.htm.md)

The action that the button performs. You can define the Toolbox by using the actions alone.
 
### Optional defaultTabName
 
defaultTabName: string

A tab to be displayed when the Asset Manager opens. By default, the first tab opens.
 
### Optional iconClass
 
iconClass: string

Inherited from [IItem](https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.itoolboxconfigparsed.iitem.htm.md).[iconClass](https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.itoolboxconfigparsed.iitem.htm.md)

The class of the button icon. You can find the complete list of available icon classes in `\src\design-editor\Styles\ControlStyles\sp-icons.less`.
 
### Optional itemConfig
 
itemConfig: [ITextConfig](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.configuration.defaultconfig.itextconfig.htm.md)  |  [IImageItemDefaultConfig](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.configuration.defaultconfig.iimageitemdefaultconfig.htm.md)  |  [IBarcodeDefaultConfig](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.configuration.defaultconfig.ibarcodedefaultconfig.htm.md)

Inherited from [IItem](https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.itoolboxconfigparsed.iitem.htm.md).[itemConfig](https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.itoolboxconfigparsed.iitem.htm.md)

A structure containing the configuration of new design elements. For an example, you can refer to [ILocationDefaultConfig](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.configuration.defaultconfig.ilocationdefaultconfig.htm.md) or [IBarcodeDefaultConfig](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.configuration.defaultconfig.ibarcodedefaultconfig.htm.md).
 
### Optional nameDialogEnabled
 
nameDialogEnabled: boolean

Inherited from [IItem](https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.itoolboxconfigparsed.iitem.htm.md).[nameDialogEnabled](https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.itoolboxconfigparsed.iitem.htm.md)

Enables a dialog box to type in the name of a new design element. The default value is `false`.
 
### Optional tabs
 
tabs: string []

An array of available tab names in the Asset Manager. By default, all defined tabs are displayed.
 
### Optional translationKey
 
translationKey: string

Inherited from [IItem](https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.itoolboxconfigparsed.iitem.htm.md).[translationKey](https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.itoolboxconfigparsed.iitem.htm.md)

The translation key of the button caption. The corresponding string should be defined in the `~\Configuration\translations.json` file.
 
### Optional translationKeyTitle
 
translationKeyTitle: string

Inherited from [IItem](https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.itoolboxconfigparsed.iitem.htm.md).[translationKeyTitle](https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.itoolboxconfigparsed.iitem.htm.md)

The translation key of the button tooltip. The corresponding string should be defined in the `~\Configuration\translations.json` file.
