IAssetManagerConfig Module

A structure defining tabs of the Asset Manager.

example
{
  "widgets": {
    "AssetManager": {
      "defaultTabName": "External urls",
      "tabs": [
        {
          "name": "My files",
          "assetSourceInstance": "My files",
          "iconClassName": "cc-icon-uploadable"
        },
        {
          "name": "External urls",
          "assetSourceInstance": "External urls",
          "iconClassName": "cc-icon-add-image"
        }
      ]
    }
  }
}

Interfaces

Name Description
ITabConfig

A structure defining tabs of the Asset Manager.

Properties

Optional defaultTabName

defaultTabName: string

The default tab opened in the Asset Manager; it should be one of ITabConfig.name.

Optional saveAllowedTabAfterInsert

saveAllowedTabAfterInsert: boolean

Allows you to restrict the image selection only to the asset tab from which an image was selected. If true, your users cannot open another tab. The default value is false.

tabs

tabs: ITabConfig []

The array of tabs available in the Asset Manager. The IAssetSources interface allows you to define the sources of these tabs.